Global Mapper SDK
Extracts building footprints from loaded imagery data and returns them as vector shapes or a binary raster layer, or both.
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_BuildingExtract
(
GM_LayerHandle_t32* aLayerList, // IN: List of imagery layer to use for building extraction (if NULL, all loaded layers will be used)
uint32 aLayerCount, // IN: Number of layers in list (0 for all)
GM_Rectangle_t* aWorldBounds, // IN: Bounds to run building extraction within (if NULL, whole extent of input layers will be used)
GM_PostProcessFlags_t8 aPostProcessFlags, // IN: Flags for enabling post-processing options
boolean aUseCUDADevice, // IN: If true, will attempt to run on CUDA GPU if available, but will fall back to CPU if not. If false, will run on CPU
const char* aCustomModelName, // IN: Optional name of a custom model created by previous experimentation to use for this inference
HWND aParentWnd, // IN: Handle to parent window to attach the inference progress dialog to
GM_LayerHandle_t32* aFootprintLayer, // OUT: output handle to a new binary raster layer representing building footprints
GM_LayerHandle_t32* aFootprintLayerVector, // OUT: output handle to a new vector layer representing building footprints as area features
GM_LayerHandle_t32* aSimplifiedLayerVector, // OUT: a processed version of the vector footprint layer, which will only be returned if simplify or regularize is chosen for aPostProcessFlags. Otherwise null
void* aReserved // IN: Reserved for future use, must be NULL
);
Comments
0 comments
Please sign in to leave a comment.