| TerraLib 4.1

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

- Namespace List
- Namespace Members

TeWKTGeometryDecoder Namespace Reference

Contains decoding/encoding functions for TerraLib geometries into WKT-like geometries. More...

## Functions

Encoding Methods
Methods used to encode TeGeometry objects into strings in WKT format.
TLUTILS_DLL void | encodePolygon (const TePolygon &polygon, string &wktPoly)
| Encodes a TePolygon into a WKT.
TLUTILS_DLL void | encodeLine (const TeLine2D &line, string &wktLine)
| Encodes a TeLine2D into a WKT.
TLUTILS_DLL void | encodePoint (const TeCoord2D &point, string &wktPoint)
| Encodes a TeCoord2D into a WKT.
Decoding Methods
Methods used to decode strings in WKT format into code TeGeometry objects.
TLUTILS_DLL void | decodePolygon (const string &wktPoly, TePolygon &poly)
| Decodes a WKT into a TePolygon object.
TLUTILS_DLL void | decodeLine (const string &wktLine, TeLine2D &line)
| Decodes a WKT into a TeLine2D object.
TLUTILS_DLL void | decodePoint (const string &wktPoint, TeCoord2D &point)
| Decodes a WKT into a TeCoord2D object.

## Detailed Description

Contains decoding/encoding functions for TerraLib geometries into WKT-like geometries.

WKT format is used to struct information about geometries in well-know manner. It is an interchange format. For more information about WKT format see WKT representation..

## Function Documentation

void TeWKTGeometryDecoder::decodeLine | ( | const string & | wktLine,
|  | TeLine2D & | line
| ) |  |

Decodes a WKT into a TeLine2D object.

Parameters:

  | wktLine | WKT to be decoded.
  [out] | line | TeLine2D decoded.

void TeWKTGeometryDecoder::decodePoint | ( | const string & | wktPoint,
|  | TeCoord2D & | point
| ) |  |

Decodes a WKT into a TeCoord2D object.

Parameters:

  | wktPoint | WKT to be decoded.
  [out] | point | TeCoord2D decoded.

void TeWKTGeometryDecoder::decodePolygon | ( | const string & | wktPoly,
|  | TePolygon & | poly
| ) |  |

Decodes a WKT into a TePolygon object.

Parameters:

  | wktPoly | WKT to be decoded.
  [out] | poly | TePolygon decoded.

void TeWKTGeometryDecoder::encodeLine | ( | const TeLine2D & | line,
|  | string & | wktLine
| ) |  |

Encodes a TeLine2D into a WKT.

Parameters:

  line | Polygon to be encoded.
  wktLine[out] | WKT genenerated by the line.

void TeWKTGeometryDecoder::encodePoint | ( | const TeCoord2D & | point,
|  | string & | wktPoint
| ) |  |

Encodes a TeCoord2D into a WKT.

Parameters:

  | polygon | Polygon to be encoded.
  [out] | wktPoint | WKT genenerated by the point.

void TeWKTGeometryDecoder::encodePolygon | ( | const TePolygon & | polygon,
|  | string & | wktPoly
| ) |  |

Encodes a TePolygon into a WKT.

Parameters:

  | polygon | Polygon to be encoded.
  [out] | wktPoly | WKT genenerated by the polygon.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines