| Maptitude GISDK Help |
Returns the area of the feature in current map units.
Added to Version 2018.
area = GetFeatureArea(integer area_id)
| Argument | Contents |
|---|---|
| area_id | The ID of the area feature |
A real number with the area of the feature in current map units.
GetFeatureArea() works only when the current layer is an area layer.
rh = GetFirstRecord(,)
id = rh2id(rh)
area = GetFeatureArea(id)
ShowMessage("Area ID=" + rh + " is " + r2s(area) + " Square " + GetMapUnits())
| Function | Summary |
|---|---|
| GetArea() | Gets the coordinates that describe an area feature |
| GetFeatureLength() | Returns the length of the feature in current map units |
| GetPolygonArea() | Computes the area of a closed polygon |
| ©2025 Caliper Corporation | www.caliper.com |