Table of Contents

Class SpatialExteriorRing

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

Represents the ST_ExteriorRing spatial accessor function that returns the exterior ring of a polygon geometry.

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

Remarks

Warning

Spatial functions are not available in the Community Edition of Velocity. They require the Full Edition.

The ST_ExteriorRing function returns a linestring representing the outer boundary ring of a polygon geometry. For multi-polygons or non-polygon geometries, behavior varies by database implementation (may return null or the exterior ring of the first polygon). The exterior ring defines the outer boundary, while interior rings (holes) are accessed separately. For Geometry types in planar coordinate systems, this is useful for extracting polygon boundaries, topology analysis, or converting polygons to linear features. OGC-compliant.

SpatialExteriorRing diagram showing outer boundary extraction

Return Type: LineString (closed ring representing the outer boundary).

InputST_ExteriorRing Result
Simple polygonOuter boundary as LineString
Polygon with holesOuter boundary only (holes not included)
Point, LineStringNULL

Constructors

SpatialExteriorRing(Geometry)

Initializes a new instance of ST_ExteriorRing with a polygon geometry literal.

SpatialExteriorRing(Column)

Initializes a new instance of ST_ExteriorRing with a polygon geometry column.

SpatialExteriorRing(Function)

Initializes a new instance of ST_ExteriorRing for a function result.

SpatialExteriorRing(Geography)

Initializes a new instance of ST_ExteriorRing with a polygon geography literal.