MI_NumGeometries

Description

Returns the number of geometries in a MultiGeometry.

Syntax

MI_NumGeometries ( geometry )

Argument

geometry is an expression that returns a geometry.

Example

Returns the number of geometries in Canada, Brazil, and China put together.

select MI_NumGeometries([Geometry_Column]) as MI_NumGeometries from "/countries" where country in ('Canada','Brazil','China')

Remarks

The value returned is an integer and represents a number of geometries in a MultiGeometry (MultiPoint, MultiCurve, and MultiPolygon). If the input geometry is not a MultiGeometry, then 1 is returned.