GM_CreateCustomElevGridLayerEx |
Creates a new custom layer that represents an in-memory elevation grid. The handle to the newly created layer is returned. You must call GM_CloseLayer on the returned handle when you are done with it. If a problem occurs, NULL is returned for the layer handle.
The layer handle returned can be used just like any other layer handle. This means that you can do things like generate contours and calculate view sheds using the data.
GM_DLL_EXPORTED GM_LayerHandle_t32 __stdcall GM_CreateCustomElevGridLayerEx ( const char* aDescription, // IN: Description to use for layer (can be NULL to use default) const GM_Projection_t* aProj, // IN: Native projection of new layer const GM_GridLayout_t* aGridLayout, // IN: Grid layer layout and type const void* aElevGrid, // IN: Grid of elevation values in row-major order void* aReserved // IN: Reserved for future use (must be NULL) )