globalmapper.CreateCustomRasterLayer ==================================== .. currentmodule:: globalmapper .. py:function:: CreateCustomRasterLayer (str aDescription, GM_Projection_t aProj, GM_RasterLayout_t aRasterLayout, int aDataBuf) -> GM_LayerHandle_t32 Creates a new custom layer that represents an in-memory raster. The handle to the newly created layer is returned. You must call :doc:`CloseLayer<../load/globalmapper.CloseLayer>` on the returned handle when you are done with it. If a problem occurs, 0 is returned for the layer handle. The returned layer handle can be used just like any other layer handle. :param str aDescription: Description to use for layer (can be None to use default) :param GM_Projection_t aProj: Native projection of new layer :param GM_RasterLayout_t aRasterLayout: Raster layer layout :param int aDataBuf: Pointer to array of raster data values in row-major order :returns: The new custom raster layer :rtype: GM_LayerHandle_t32