MI_CentroidX - 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 x-coordinate of the centroid of a geometry object.

Syntax

MI_CentroidX ( geometry )

Arguments

geometry is an expression which returns a geometry.

Example

Returns x-coordinate of the centroid of the specified country geometries.

select MI_CentroidX([Geometry_Column]) as mi_centroidX from countries where country= ANY ('Bermuda','Cuba')

Remarks

The value returned is a double and represents a value in terms of the coordinate system of the input geometry.