Global Mapper SDK
GM_LidarExtractFeatures
Automatically extracts vector features (buildings, trees, etc.) from the classified Lidar points in one or more layers. New layers are created and added to the active layer list. If aOutput is provided, the layer handles that are created are stored there are well. Those layers are the caller's responsibility and must be closed with GM_CloseLayer when you are finished with them.
If you want to only classify a subset of the points in a cloud, first use GM_CreateLidarQuery to build a set of the points that you want to classify, then use GM_LidarExtractFeaturesFromQuery to extract the features.
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_LidarExtractFeatures
(
GM_LayerHandle_t32* aLayerList, // IN: List of layers to extract from or NULL for all Lidar layers
uint32 aLayerCount, // IN: Number of layers in list (0 for all)
const GM_LidarExtractSetup_t* aExtractOpts, // IN: Extraction options. You must provide settings with a non-zero value for mTypes.
GM_LidarExtractOutput_t* aOutput, // OUT: Generated layers with extracted features. Be sure to use GM_CloseLayer on them when finished with them.
void* aReserved // IN: reserved for future use. Must be NULL.
)