Class SpatialGeometryType
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the ST_GeometryType spatial property function that returns the type of a geometry as a string.
public class SpatialGeometryType : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
SpatialGeometryType
- Implements
Remarks
Warning
Spatial functions are not available in the Community Edition of Velocity. They require the Full Edition.
The ST_GeometryType function returns the OGC geometry type name as a string, such as "POINT", "LINESTRING", "POLYGON", "MULTIPOINT", "MULTILINESTRING", "MULTIPOLYGON", or "GEOMETRYCOLLECTION". The returned value typically includes the "ST_" prefix (e.g., "ST_Point"). For Geometry types in planar coordinate systems, this is useful for filtering by geometry type, validation, or determining appropriate spatial operations based on type. OGC-compliant.
Return Type: String (geometry type name).
| Geometry | Returned String |
|---|---|
| Point | "Point" or "ST_Point" |
| LineString | "LineString" or "ST_LineString" |
| Polygon | "Polygon" or "ST_Polygon" |
| MultiPoint | "MultiPoint" or "ST_MultiPoint" |
| MultiLineString | "MultiLineString" or "ST_MultiLineString" |
| MultiPolygon | "MultiPolygon" or "ST_MultiPolygon" |
| GeometryCollection | "GeometryCollection" or "ST_GeometryCollection" |
Constructors
- SpatialGeometryType(Geometry)
Initializes a new instance of ST_GeometryType with a geometry literal.
- SpatialGeometryType(Column)
Initializes a new instance of ST_GeometryType with a geometry column.
- SpatialGeometryType(Function)
Initializes a new instance of ST_GeometryType for a function result.
- SpatialGeometryType(Geography)
Initializes a new instance of ST_GeometryType with a geography literal.