ConvertCoordLayerGroundToPixel¶
- globalmapper.ConvertCoordLayerGroundToPixel(GM_LayerHandle_t32 aLayer, float aGroundX, float aGroundY) GM_Error_t32, float, float [source]¶
Convert a coordinate between the current projection and layer pixel space and the current. The input layer must be a raster or gridded elevation layer (i.e. a layer where a pixel coordinate makes sense).
- Parameters:
aLayer (GM_LayerHandle_t32) – raster layer to do conversion in
aGroundX (float) – X Coord in current projection
aGroundY (float) – Y Coord in current projection
- Returns:
Error Code
- Return type:
GM_Error_t32
- Returns:
X Coord in layer pixel space
- Return type:
float
- Returns:
Y Coord in layer pixel space
- Return type:
float