MI_NumPoints - spectrum_spatial - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2025-03-07
ft:lastPublication
2025-03-07T10:28:48.112000

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.