GetNumberOfPolygons()
Summary
Gets the number of polygons in an area feature.
Changes
Added in Version 2017.
Syntax
n_polygons = GetNumberOfPolygons(integer id, opt array options)
| Argument | Contents |
|---|---|
| id | The ID of the area feature |
| Option | Type | Contents |
|---|---|---|
| Clockwise | Boolean | If "true" allows you to see how many of the polygons are clockwise, i.e., not holes. |
Returns
The number of polygons in the area feature.
Notes
-
The options array is an optional argument.
-
The current layer must be an area layer.
-
GetNumberOfPolygons() makes it easy to see the number of polygons in an area feature in a formula field.
See Also
| Function | Summary |
|---|---|
| GetArea() | Gets the coordinates that describe an area feature |