Global Mapper SDK
GM_LidarExtractFeaturesFromQuery
Automatically extracts vector features (buildings, trees, etc.) from the classified Lidar points in the provided query. 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.
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_LidarExtractFeaturesFromQuery
(
GM_LidarQueryHandle_t aLidarQuery, // IN: Lidar query of points to classify
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.
)