MI_GeometryN - 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 nth geometry in a MultiGeometry.

Syntax

geometry MI_GeometryN ( geometry, n )

Argument

geometry is an expression that returns a geometry.

n is the position of the geometry to be returned from the MultiGeometry.

Example

Returns the 2nd polygon listed for the specified Rhode Island state.

select MI_GeometryN([Geometry_Column], 2) as MI_GeometryN from "/USA" where state in ('RI')

Remarks

This function also enables the geometry disaggregation. If the input geometry is not a MultiGeometry (MultiPoint, MultiCurve, and MultiPolygon), and asking for the first geometry, the input geometry will be return. Otherwise null is returned