GDAL

Public Member Functions | List of all members
OGRWKTToWKBTranslator Class Reference

Translate WKT geometry to WKB geometry and append it to a buffer. More...

`#include <ogr_wkb.h>`

## Public Member Functions
| OGRWKTToWKBTranslator (OGRAppendBuffer &oAppendBuffer)
| Constructor.
size_t | TranslateWKT (void *pabyWKTStart, size_t nLength, bool bCanAlterByteAfter)
| Translate the WKT geometry starting at pabyWKTStart and of length nLength.

## Detailed Description

Translate WKT geometry to WKB geometry and append it to a buffer.

## Member Function Documentation

## ◆ TranslateWKT()

size_t OGRWKTToWKBTranslator::TranslateWKT | ( | void * | pabyWKTStart,
|  | size_t | nLength,
|  | bool | bCanAlterByteAfter
| ) |  |

Translate the WKT geometry starting at pabyWKTStart and of length nLength.

If pabyWKTStart[nLength] can be dereferenced and temporarily modified, set bCanAlterByteAfter to true, which will optimize performance.

Returns the number of bytes of the generated WKB, or -1 in case of error.

The documentation for this class was generated from the following files:

- ogr_wkb.h
- ogr_wkb.cpp