globalmapper.ProjectRectangle¶
- globalmapper.ProjectRectangle(GM_Rectangle_t aRectIn, GM_Projection_t aProjIn, GM_Projection_t aProjOut) GM_Error_t32, GM_Rectangle_t [source]¶
Projects a rectangle from one coordinate system to another. If None is passed for either projection parameter, the current view projection will be used.
Note that this should be used rather than simply calling ProjectPoint on the corners of a rectangle because many rectangles will NOT be rectangular in other projections, resulting in min/max values along on edge, or in some cases, like polar stereographic, the min/max values may be interior to the rectangle.
- Parameters:
aRectIn (GM_Rectangle_t) – Rectangle to convert in input projection
aProjIn (GM_Projection_t) – projection to convert from (None for current)
aProjTo (GM_Projection_t) – projection to convert to (None for current)
- Returns:
Error Code
- Return type:
GM_Error_t32
- Returns:
Rectangle in output projection
- Return type: