Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt
hiddentrue

geoGetNum(Geometry value, Decimal Places), Returns the number of Geometries in a GeometryCollection or Multipolygon.

Function: geoGetNum(Geometry value, Decimal Places)

Returns the number of Geometries in a GeometryCollection or Multipolygon.

...

Syntax

geoGetNum( geometryValue, decimalPlaces

ArgumentTypeDescription
geometryValue

WTK String or

Geometry Object

The geometry to test for number of geometries.
decimalPlacesIntegerThe number of decimal places to use in the geometry calculations. Defaults to 0 if not provided. Can also take negative values e.g. -1 uses geometry to the nearest 10.

Examples

geoGetNum("MULTIPOLYGON (((0 0, 0 2, 2 2, 2 0, 0 0)), ((0 0, 0 -2, -2 -2, -2 0, 0 0)))")

...