Click or drag to resize

GM_ProjectRectangle

Projects a rectangle from one coordinate system to another. If NULL is passed for either projection parameter, the current view projection will be used.

Note that this should be used rather than simply calling GM_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.

For examples on how to set up projection definitions, see the documentation for the GM_SetProjection function.

Syntax
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_ProjectRectangle
(
const GM_Rectangle_t*   aRectIn,    // IN: Rectangle to convert in input projection
GM_Rectangle_t*         aRectOut,   // OUT: Rectangle in output projection
const GM_Projection_t*  aProjIn,    // IN: projection to convert from (NULL for current)
const GM_Projection_t*  aProjOut    // IN: projection to convert to (NULL for current)
);