Maptitude GISDK Help

GetPolygonArea()

Summary

Computes the area of a closed polygon.

 

Syntax

result = GetPolygonArea(array coords)

 

Argument Contents
coords An array of coordinates that define an area

 

Returns

A real number indicating the area of the polygon in map units.

 

Notes

Example

// Use this code in a toolbox tool or the immediate execution

s = ClickShape()

a = GetPolygonArea(s)

ShowMessage("Your area is " + r2s(a) + " square " + GetMapUnits())

Error Codes

Error Type Meaning
Error The polygon is invalid

 

See Also

Function Summary
GetArea() Gets the coordinates that describe an area feature
GetDistance() Computes the great circle distance between two coordinates
GetFeatureArea() Returns the area of the feature in current map units

 

 

©2025 Caliper Corporation www.caliper.com