globalmapper.CreateCustomElevGridLayerEx ======================================== .. currentmodule:: globalmapper .. py:function:: CreateCustomElevGridLayerEx (str aDescription, GM_Projection_t aProj, GM_GridLayout_t aGridLayout, int aElevGrid, int aReserved) -> GM_LayerHandle_t32 Creates a new custom layer that represents an in-memory elevation grid located at the pointer given in *aElevGrid*. 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, 0x0 is returned for the layer handle. The returned layer handle 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. :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_GridLayout_t aGridLayout: Grid layer layout and type :param int aElevGrid: Pointer to an array of elevation values in an order defined by mFlags in *aGridLayout*. Row-major order by default. :param int aReserved: Reserved for future use; must be 0. :returns: The newly created elevation grid layer :rtype: GM_LayerHandle_t32