Class SpatialSrid
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the ST_SRID spatial property function that returns the Spatial Reference System Identifier of a geometry.
public class SpatialSrid : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
SpatialSrid
- Implements
Remarks
Warning
Spatial functions are not available in the Community Edition of Velocity. They require the Full Edition.
The ST_SRID function returns the integer SRID (Spatial Reference System Identifier) associated with a geometry or geography. The SRID identifies the coordinate system, such as WGS84 (SRID 4326) or various projected coordinate systems. Matching SRIDs is typically required for spatial operations between geometries. For Geometry types in planar coordinate systems and Geography types on spherical surfaces, this is essential for coordinate system management, transformation validation, or ensuring spatial operations use compatible reference systems. OGC-compliant.
Return Type: Integer (SRID value).
| Common SRID | Description |
|---|---|
| 4326 | WGS 84 - GPS coordinates, lat/lon in degrees |
| 3857 | Web Mercator - Google Maps, OpenStreetMap |
| 0 | Unknown or no coordinate reference system |
Constructors
- SpatialSrid(Geometry)
Initializes a new instance of ST_SRID with a geometry literal.
- SpatialSrid(Column)
Initializes a new instance of ST_SRID with a geometry column.
- SpatialSrid(Function)
Initializes a new instance of ST_SRID for a function result.
- SpatialSrid(Geography)
Initializes a new instance of ST_SRID with a geography literal.