LidarExtractFeaturesFromQuery¶
- globalmapper.LidarExtractFeaturesFromQuery(GM_LidarQueryHandle_t aLidarQuery, GM_LidarExtractSetup_t aExtractOpts, uint32 aReserved=0) GM_Error_t32, GM_LidarExtractOutput_t[source]¶
Extracts vector features from the Lidar data in a Lidar query.
- Parameters:
aLidarQuery (GM_LidarQueryHandle_t) – Lidar query of points to classify.
aExtractOpts (GM_LidarExtractSetup_t) – Extraction options. You must provide settings with a non-zero value for mTypes.
aReserved (uint32) – Reserved for future use; defaults to 0
- Returns:
Error Code
- Return type:
GM_Error_t32
- Returns:
Generated layers with extracted features. Be sure to use CloseLayer on them when finished with them.
- Return type:
Example¶
The following is an example of LidarExtractFeaturesFromQuery.:
extract_opts = gm.GM_LidarExtractSetup_t()
extract_opts.mTypes = gm.GM_LidarExtract_Trees
extract_opts.mTypes += gm.GM_LidarExtract_Buildings
err_LidarExtractFeaturesFromQuery, generated_layers = gm.LidarExtractFeaturesFromQuery(
query_pointer1, extract_opts, 0
)
For more context refer to the lidar sample scripts.