GM_CreateCustomRasterLayer

Creates a new custom layer that represents an in-memory raster. 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.

Syntax

C++
Copy
GM_LayerHandle_t32 __stdcall GM_CreateCustomRasterLayer
(
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_RasterLayout_t*    aRasterLayout,      // IN: Raster layer layout
const void*                 aDataBuf            // IN: Grid of raster data values in row-major order
)