| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

Functions
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/gdal/TeOGRUtils.cpp File Reference
`#include "TeOGRUtils.h"`
`#include "../../kernel/TeGeometry.h"`
`#include "../../kernel/TeUtils.h"`
`#include "../../utils/TeWKBGeometryDecoder.h"`
`#include <ogrsf_frmts.h>`
`#include <ogr_spatialref.h>`

## Functions

std::vector< TeGeometry * > | Convert2TerraLib (OGRGeometry *ogrGeom)
| It converts the OGR Geometry to TerraLib Geometry.
OGRGeometry * | Convert2OGR (TeGeometry *geom)
| It converts the TerraLib Geometry to OGR Geometry.
TeBox | Convert2TerraLib (OGREnvelope *env)
| It converts the OGR Envelope to TerraLib Box.
TeAttributeList | Convert2TerraLib (OGRFeatureDefn *featDef)
| It converts the OGR Feature Definition to TerraLib Attribute List.
TeAttribute | Convert2TerraLib (OGRFieldDefn *fieldDef)
| It converts the OGR Field Definition to TerraLib Attribute.
OGRFieldDefn | Convert2OGR (const TeAttribute &attr)
| It converts the TerraLib Attribute to OGR Field Definition.
TeSTInstance | Convert2TerraLib (OGRFeature *feat)
| It converts a OGR Feature to TerraLib STInstance object.
int | Convert2TerraLib (OGRwkbGeometryType geomType)
| It converts the OGR Geometry Type element to TerraLib Geometric Representation.
OGRSpatialReference * | Convert2OGR (TeProjection *proj)
| It converts the TerraLib Projection to OGR Spatial Reference System.

## Function Documentation

OGRGeometry* Convert2OGR | ( | TeGeometry * | geom | ) |

It converts the TerraLib Geometry to OGR Geometry.

Parameters:

  geom | A valid TerraLib Geometry.

Returns:
  An OGR geometry.

Note:
  It uses the WKB to create the OGR Geometry.

OGRSpatialReference* Convert2OGR | ( | TeProjection * | proj | ) |

It converts the TerraLib Projection to OGR Spatial Reference System.

Parameters:

  proj | A valid TerraLib Projection.

Returns:
  OGR Spatial Reference System.

OGRFieldDefn Convert2OGR | ( | const TeAttribute & | attr | ) |

It converts the TerraLib Attribute to OGR Field Definition.

Parameters:

  attr | A valid TerraLib Attribute.

Returns:
  An OGR Field Definition.

TeSTInstance Convert2TerraLib | ( | OGRFeature * | feat | ) |

It converts a OGR Feature to TerraLib STInstance object.

Parameters:

  feat | A valid OGR Feature.

Returns:
  A TerraLib STInstance object.

TeBox Convert2TerraLib | ( | OGREnvelope * | env | ) |

It converts the OGR Envelope to TerraLib Box.

Parameters:

  env | A valid OGR Envelope.

Returns:
  A valid TerraLib Box.

TeAttribute Convert2TerraLib | ( | OGRFieldDefn * | fieldDef | ) |

It converts the OGR Field Definition to TerraLib Attribute.

Parameters:

  fieldDef | A valid OGR Field Definition.

Returns:
  A TerraLib Attribute.

std::vector<TeGeometry*> Convert2TerraLib | ( | OGRGeometry * | ogrGeom | ) |

It converts the OGR Geometry to TerraLib Geometry.

Parameters:

  ogrGeom | A valid OGR Geometry.

Returns:
  A vector of TerraLib Geometries.

Note:
  It uses the WKB to create the TerraLib Geometry.

int Convert2TerraLib | ( | OGRwkbGeometryType | geomType | ) |

It converts the OGR Geometry Type element to TerraLib Geometric Representation.

Parameters:

  geomType | A valid OGR Geometry Type element.

Returns:
  TerraLib Geometric composite.

TeAttributeList Convert2TerraLib | ( | OGRFeatureDefn * | featDef | ) |

It converts the OGR Feature Definition to TerraLib Attribute List.

Parameters:

  featDef | A valid OGR Feature Definition.

Returns:
  A TerraLib Attribute List.

Note:
  It uses the method that converts a OGR Field Definition to TerraLib Attribute.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines