CalcEnclosedArea

globalmapper.CalcEnclosedArea(GM_Point_t_array aPtList, int aNumPoints, GM_Projection_t aProj) GM_Error_t32, float[source]

Calculates the enclosed area of a region in square meters. The coordinates in aPtList are in the projection defined by aProj. If None is passed for aProj then the current global projection as returned by GetProjection is assumed.

Parameters:
  • aPtList (GM_Point_t_array) – list of points defining area

  • aNumPoints (int) – the size of aPtList

  • aProj (GM_Projection_t) – projection of points in list (use None for current projection returned by GetProjection)

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

Enclosed area in square meters

Return type:

float