Table of Contents

Class SpatialCentroid

Namespace
YndigoBlue.Velocity.Functions
Assembly
YndigoBlue.Velocity.dll

Represents the ST_Centroid spatial analysis function that computes the geometric center of a geometry.

public class SpatialCentroid : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
Inheritance
SpatialCentroid
Implements

Remarks

The ST_Centroid function returns a point representing the mathematical centroid (center of mass) of the input geometry. For polygons, this is the center of gravity assuming uniform density. For lines, it's the center of the line's extent. For multi-part geometries, it's the weighted center of all parts. Note that the centroid may not lie within the geometry itself (e.g., for C-shaped polygons). Useful for labeling, finding centers, or proximity analysis. OGC-compliant.

Constructors

SpatialCentroid(Column)

Initializes a new instance of ST_Centroid with a spatial column.