GM_GenerateElevationGrid
Generates an elevation grid and optionally a 3D area TIN layer from loaded 3D vector data. The layer handle(s) returned in aGridLayer and (optionally) aTinLayer must be closed with GM_CloseLayer when you are done with them.
See the definition of the GM_GridGenSetup_t type in the GlobalMapperInterface.h header file for a description of what options are available when generating the elevation grid. The default options are all a value of zero, or you can just pass NULL for the aGridSetup parameter to get the default options.
Syntax
GM_Error_t32 __stdcall GM_GenerateElevationGrid
(
GM_LayerHandle_t32* aLayerList, // IN: List of layers to use or NULL for all
uint32 aLayerCount, // IN: Number of layers in list (0 for all)
const GM_GridGenSetup_t* aGridSetup, // IN: Grid setup parameters (pass NULL for default options)
GM_LayerHandle_t32* aGridLayer, // OUT: Created grid layer
GM_LayerHandle_t32* aTinLayer // OUT: Created TIN area layer (optional, set to NULL if you don't want)
);