MI_NumPoints

Description

Returns the number of points (vertices) in a geometry.

Syntax

MI_NumPoints ( geometry )

Argument

geometry is an expression that returns a geometry.

Example

Returns the number of points in the USA.

select MI_NumPoints([Geometry_Column]) as MI_NumPoints from "/countries" where country in ('USA')

Remarks

The value returned is an integer and represents the number of points in a geometry. For polygons, both the starting and ending vertices are counted, even though they occupy the same location. If the input is not a valid geometry, then error is returned.