Class SpatialIsClosed
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the ST_IsClosed spatial property function that tests whether a linestring or multi-linestring is closed.
public class SpatialIsClosed : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
SpatialIsClosed
- Implements
Remarks
Warning
Spatial functions are not available in the Community Edition of Velocity. They require the Full Edition.
The ST_IsClosed function returns true if the geometry is a linestring or multi-linestring where the start and end points are coincident (the same point), forming a closed loop. For other geometry types, the result may be false or undefined. A closed linestring has identical first and last coordinates. This is distinct from ST_IsRing, which also requires the linestring to be simple (non-self-intersecting). For Geometry types in planar coordinate systems, useful for validating polygon boundaries, detecting loops, or topology analysis. OGC-compliant.
Return Type: Boolean (true/false).
| Geometry | ST_IsClosed Result |
|---|---|
| LineString where first = last point | TRUE |
| LineString where first ≠ last point | FALSE |
| MultiLineString (all lines closed) | TRUE |
| MultiLineString (any line open) | FALSE |
| Polygon boundary | TRUE (always closed) |
| Point | FALSE |
Constructors
- SpatialIsClosed(Geometry)
Initializes a new instance of ST_IsClosed with a geometry literal.
- SpatialIsClosed(Column)
Initializes a new instance of ST_IsClosed with a geometry column.
- SpatialIsClosed(Function)
Initializes a new instance of ST_IsClosed for a function result.
- SpatialIsClosed(Geography)
Initializes a new instance of ST_IsClosed with a geography literal.