Class SpatialLength
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the ST_Length spatial measurement function that computes the length of a linear geometry.
public class SpatialLength : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
SpatialLength
- Implements
Remarks
The ST_Length function returns the total length of a linestring or multi-linestring geometry. For polygons, it may return the perimeter. For points, typically returns 0. For Geometry types, length is in coordinate system units. For Geography types, length is calculated using spherical geometry and can be specified with a unit of measure (meters, kilometers, miles, etc.). This is useful for measuring distances, calculating route lengths, or analyzing linear features. OGC-compliant.
Constructors
- SpatialLength(Column)
Initializes a new instance of ST_Length with a geometry column.
- SpatialLength(Column, UnitOfMeasure)
Initializes a new instance of ST_Length with a geography column and unit of measure.