Class SpatialIsSimple
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the ST_IsSimple spatial validation function that tests whether a geometry has no self-intersections.
public class SpatialIsSimple : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
SpatialIsSimple
- Implements
Remarks
Warning
Spatial functions are not available in the Community Edition of Velocity. They require the Full Edition.
The ST_IsSimple function returns true if the geometry has no anomalous geometric points such as self-intersection or self-tangency. For linestrings, simple means the line does not cross itself. For multi-linestrings, lines may touch at endpoints but not cross. Points and polygons are always simple. For Geometry types in planar coordinate systems, this is useful for topology validation, data quality checks, or ensuring geometries meet simplicity requirements for certain operations. OGC-compliant.
Return Type: Boolean (true/false).
| Geometry | ST_IsSimple Result |
|---|---|
| Point | TRUE (always) |
| MultiPoint (no duplicates) | TRUE |
| MultiPoint (duplicate points) | FALSE |
| LineString (no self-crossing) | TRUE |
| LineString (self-crossing) | FALSE |
| Polygon (valid) | TRUE |
Constructors
- SpatialIsSimple(Geometry)
Initializes a new instance of ST_IsSimple with a geometry literal.
- SpatialIsSimple(Column)
Initializes a new instance of ST_IsSimple with a geometry column.
- SpatialIsSimple(Function)
Initializes a new instance of ST_IsSimple for a function result.
- SpatialIsSimple(Geography)
Initializes a new instance of ST_IsSimple with a geography literal.