Class SpatialIsValid
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the ST_IsValid spatial validation function that tests whether a geometry is topologically valid.
public class SpatialIsValid : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
SpatialIsValid
- Implements
Remarks
Warning
Spatial functions are not available in the Community Edition of Velocity. They require the Full Edition.
The ST_IsValid function returns true if the geometry is well-formed according to the OGC Simple Features specification, and false otherwise. Valid geometries have no self-intersections, proper orientation, closed rings, and consistent topology. For Geometry types in planar coordinate systems, validation checks for common issues like polygon rings that cross themselves, unclosed rings, or invalid multi-part geometries. This function is essential for data quality assurance, validation before spatial operations, and ensuring compliance with standards. OGC-compliant.
Return Type: Boolean (true/false).
| Geometry | ST_IsValid Result |
|---|---|
| Simple closed polygon | TRUE |
| Self-intersecting polygon (bowtie) | FALSE |
| Polygon with hole touching exterior | FALSE |
| Polygon with hole outside shell | FALSE |
| Point, LineString | TRUE (always valid) |
Constructors
- SpatialIsValid(Geometry)
Initializes a new instance of ST_IsValid with a geometry literal.
- SpatialIsValid(Column)
Initializes a new instance of ST_IsValid with a geometry column.
- SpatialIsValid(Function)
Initializes a new instance of ST_IsValid for a function result.
- SpatialIsValid(Geography)
Initializes a new instance of ST_IsValid with a geography literal.