globalmapper.CreateCustomElevGridLayer ====================================== .. currentmodule:: globalmapper .. py:function:: CreateCustomElevGridLayer (str aDescription, GM_Projection_t aProj, GM_Point_t aTopLeft, float aXSampleSize, float aYSampleSize, sint32 aNumSamplesX, sint32 aNumSamplesY, int aElevGrid, GM_GridValType_t8 aGridValType, float aNoDataValue) -> GM_LayerHandle_t32 Creates a new custom layer that represents an in-memory elevation grid. 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 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. This function is DEPRECATED. You should use the :doc:`CreateCustomElevGridLayerEx function` instead. :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_Point_t aTopLeft: Ground coordinates of top left sample :param float aXSampleSize: Size of each grid cell in the x direction :param float aYSampleSize: Size of each grid cell in the y direction :param sint32 aNumSamplesX: Number of samples in the x direction :param sint32 aNumSamplesY: Number of samples in the y direction :param int aElevGrid: Pointer to array of elevation values in row-major order :param GM_GridValType_t8 aGridValType: Layout of elevation grid :param float aNoDataValue: Value of samples for which the value isn't known (i.e. -9999.9) :returns: The newly created elevation grid layer :rtype: GM_LayerHandle_t32