- globalmapper.CalcWorldRectSize(GM_Rectangle_t aWorldBounds) GM_Error_t32, float, float[source]
-
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.
- Parameters:
-
aWorldBounds (GM_Rectangle_t) – World bounds to calc size of or None for last drawn
- Returns:
-
Error Code
- Return type:
-
GM_Error_t32
- Returns:
-
Width of rectangle in meters
- Return type:
-
float
- Returns:
-
Height of rectangle in meters
- Return type:
-
float
Example
The following is an example of CalcWorldRectSize.
err_CalcWorldRectSize, width, height = gm.CalcWorldRectSize(
gm.GetLayerInfo(layers_list[0]).mGlobalRect
)
Comments
0 comments
Please sign in to leave a comment.