Global Mapper SDK
GM_LoadVectorFromWKTString
Loads a vector feature from a WKT geometry string. The feature is returned in a new layer with the specified name and projection. To use the current projection, pass NULL for the projection pointer.
Syntax
C++
Copy
GM_Error_t32 GM_LoadVectorFromWKTString
(
const char* aWKTString, // IN: WKT string to load
GM_LayerHandle_t32* aLayer, // OUT: the vector layer loaded from the WKT string
const char* aLayerName, // IN: name to give the new layer
const GM_Projection_t* aProj // IN: Projection to use for the WKT layer (NULL for current projection)
);