globalmapper.ProjectPoint

globalmapper.ProjectPoint(float aXIn, float aYIn, GM_Projection_t aProjIn, GM_Projection_t aProjOut) GM_Error_t32, float, float[source]

This function projects a point from one coordinate system to another. If None is passed for either projection parameter, the current view/export projection will be used. This function provides an easy way to convert from latitude/longitude coordinates (or coordinates in any other supported projection) to any other projection, including the current view projection.

Parameters
  • aXIn (float) – X coordinate of input point

  • aYIn (float) – Y coordinate of input point

  • aProjIn (GM_Projection_t) – projection to convert from (use None for current)

  • aProjOut (GM_Projection_t) – projection to convert to (use None for current)

Returns

Error Code

Return type

GM_Error_t32

Returns

X coordinate of output point

Return type

float

Returns

Y coordinate of output point

Return type

float