GenerateElevationGrid2

globalmapper.GenerateElevationGrid2([GM_LayerHandle_t32] aLayerList, GM_GridGenSetup_t aGridSetup) GM_Error_t32, GM_LayerHandle_t32[source]

Generates an elevation grid and optionally a 3D area TIN layer from loaded 3D vector data. The returned grid layer handle(s) and TIN layer (if created) must be closed with CloseLayer when you are done with them.

Parameters:
  • aLayerList ([GM_LayerHandle_t32]) – List of layers to use or None for all

  • aGridSetup (GM_GridGenSetup_t) – Grid setup parameters (pass None for default options)

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

Created grid layer

Return type:

GM_LayerHandle_t32

Example

The following is an example of GenerateElevationGrid2.:

err, grid_layer = gm.GenerateElevationGrid2([layers_arr[0]], grid_setup)

For more context refer to the tutorial page on full example scripts.