Click or drag to resize

GM_ConvertCoordLayerPixelToGround

Convert a coordinate between layer pixel space and the current projection. The input layer must be a raster or gridded elevation layer (i.e. a layer where a pixel coordinate makes sense).

Syntax
GM_Error_t32 __stdcall GM_ConvertCoordLayerPixelToGround

( 

GM_LayerHandle_t32      aLayer,         // IN: raster layer to do conversion in

double                  aPixelX,        // IN: X Coord in layer pixel space

double                  aPixelY,        // IN: Y Coord in layer pixel space

double*                 aGroundX,       // OUT: X Coord in current projection

double*                 aGroundY        // OUT: Y Coord in current projection

)