GM_Utility .CalcWorldRectSize Method
Calculates the width and height of a rectangle in the current projection. The rectangle can either be specified or the last drawn rectangle can be used.

Namespace:GlobalMapper
Assembly:  GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

Syntax
C#
Copy
public static GM_Error_t32 CalcWorldRectSize(
    GM_Rectangle_t aWorldBounds,
    out double aWidthMeters,
    out double aHeightMeters
)

Parameters

aWorldBounds
Type:  GlobalMapper . GM_Rectangle_t
IN: World bounds to calc size of or NULL for last drawn
aWidthMeters
Type:  System . Double
OUT: Width of rectangle in meters
aHeightMeters
Type:  System . Double
OUT: Height of rectangle in meters

Return Value

Type:  GM_Error_t32
A GM Error Code
See Also