| TerraLib 4.1

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

- Namespace List
- Namespace Members

TeWKBGeometryDecoder Namespace Reference

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

## Functions

Encoding Methods
Methods used to encode TeGeometry objects into pointers to char* in WKB format.
TLUTILS_DLL void | encodePolygon (const TePolygon &polygon, char *&wkbPoly, unsigned int &size)
| Encodes a TePolygon into a WKB.
TLUTILS_DLL void | encodeLine (const TeLine2D &line, char *&wkbLine, unsigned int &size)
| Encodes a TeLine2D into a WKB.
TLUTILS_DLL void | encodePoint (const TeCoord2D &point, char *&wkbPoint, unsigned int &size)
| Encodes a TeCoord2D into a WKB.
Decoding Methods
Methods used to decode pointers to char* in WKB format into code TeGeometry objects.
TLUTILS_DLL void | decodePolygon (const char *&wkbPoly, TePolygon &poly, unsigned int &readBytes)
| Decodes a WKB into a TePolygon object.
TLUTILS_DLL void | decodeLine (const char *&wkbLine, TeLine2D &line, unsigned int &readBytes)
| Decodes a WKB into a TeLine2D object.
TLUTILS_DLL void | decodePoint (const char *&wkbPoint, TeCoord2D &point, unsigned int &readBytes)
| Decodes a WKB into a TeCoord2D object.
TLUTILS_DLL void | decodePolygonSet (const char *&wkbMultiPolygon, TePolygonSet &pset, unsigned int &readBytes)
| Decodes a WKB into a TePolygonSet object.
TLUTILS_DLL void | decodeLineSet (const char *&wkbMultiLine, TeLineSet &lset, unsigned int &readBytes)
| Decodes a WKB into a TeLineSet object.
TLUTILS_DLL void | decodePointSet (const char *&wkbMultiPoint, TePointSet &ptset, unsigned int &readBytes)
| Decodes a WKB into a TePointSet object.

## Detailed Description

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

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

## Function Documentation

void TeWKBGeometryDecoder::decodeLine | ( | const char *& | wkbLine,
|  | TeLine2D & | line,
|  | unsigned int & | readBytes
| ) |  |

Decodes a WKB into a TeLine2D object.

Parameters:

  wkbLine | WKB to be decoded. [in]
  line | TeLine2D decoded. [out]
  readBytes | number of bytes that were read. [out]

void TeWKBGeometryDecoder::decodeLineSet | ( | const char *& | wkbMultiLine,
|  | TeLineSet & | lset,
|  | unsigned int & | readBytes
| ) |  |

Decodes a WKB into a TeLineSet object.

Parameters:

  wkbMultiLine | WKB to be decoded. [in]
  lset | TeLineSet decoded. [out]
  readBytes | number of bytes that were read. [out]

void TeWKBGeometryDecoder::decodePoint | ( | const char *& | wkbPoint,
|  | TeCoord2D & | point,
|  | unsigned int & | readBytes
| ) |  |

Decodes a WKB into a TeCoord2D object.

Parameters:

  wkbPoint | WKB to be decoded. [in]
  point | TeCoord2D decoded. [out]
  readBytes | number of bytes that were read. [out]

void TeWKBGeometryDecoder::decodePointSet | ( | const char *& | wkbMultiPoint,
|  | TePointSet & | ptset,
|  | unsigned int & | readBytes
| ) |  |

Decodes a WKB into a TePointSet object.

Parameters:

  wkbMultiPoint | WKB to be decoded. [in]
  ptset | TePointSet decoded. [out]
  readBytes | number of bytes that were read. [out]

void TeWKBGeometryDecoder::decodePolygon | ( | const char *& | wkbPoly,
|  | TePolygon & | poly,
|  | unsigned int & | readBytes
| ) |  |

Decodes a WKB into a TePolygon object.

Parameters:

  wkbPoly | WKB to be decoded. [in]
  poly | TePolygon decoded. [out]
  readBytes | number of bytes that were read. [out]

void TeWKBGeometryDecoder::decodePolygonSet | ( | const char *& | wkbMultiPolygon,
|  | TePolygonSet & | pset,
|  | unsigned int & | readBytes
| ) |  |

Decodes a WKB into a TePolygonSet object.

Parameters:

  wkbMultiPolygon | WKB to be decoded. [in]
  pset | TePolygonSet decoded. [out]
  readBytes | number of bytes that were read. [out]

void TeWKBGeometryDecoder::encodeLine | ( | const TeLine2D & | line,
|  | char *& | wkbLine,
|  | unsigned int & | size
| ) |  |

Encodes a TeLine2D into a WKB.

Parameters:

  line | Polygon to be encoded. [in]
  wkbLIne | WKB genenerated by the line. [out]
  size | The size of WKB in byte. [out]

void TeWKBGeometryDecoder::encodePoint | ( | const TeCoord2D & | point,
|  | char *& | wkbPoint,
|  | unsigned int & | size
| ) |  |

Encodes a TeCoord2D into a WKB.

Parameters:

  polygon | Polygon to be encoded. [in]
  wkbPoly | WKB genenerated by the polygon. [out]
  size | The size of WKB in byte. [out]

void TeWKBGeometryDecoder::encodePolygon | ( | const TePolygon & | polygon,
|  | char *& | wkbPoly,
|  | unsigned int & | size
| ) |  |

Encodes a TePolygon into a WKB.

Parameters:

  polygon | Polygon to be encoded. [in]
  wkbPoly | WKB genenerated by the polygon. [out]
  size | The size of WKB in byte. [out]

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines