GDAL
|
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. More... | |
Translate WKT geometry to WKB geometry and append it to a buffer.
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.