Class SpatialIntersects
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the ST_Intersects spatial predicate function that tests if two geometries have any points in common.
public class SpatialIntersects : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
SpatialIntersects
- Implements
Remarks
Warning
Spatial functions are not available in the Community Edition of Velocity. They require the Full Edition.
The ST_Intersects function returns true if the two spatial objects have at least one point in common (their interiors or boundaries intersect). This is the inverse of ST_Disjoint. According to the DE-9IM model, two geometries intersect if their intersection is not empty. This is one of the most commonly used spatial predicates for finding overlapping or touching features. OGC-compliant.
Return Type: Boolean (true/false).
Intersection Rules:
| Relationship | ST_Intersects Result |
|---|---|
| B completely inside A | TRUE |
| A and B overlap | TRUE |
| A and B touch (boundary only) | TRUE |
| A and B are completely separate | FALSE |
Example Results: ST_Intersects(PY0, X)
| Shape X | Result |
|---|---|
| PY1 (inside PY0) | TRUE - completely contained |
| PY2 (outside PY0) | FALSE - no shared points |
| PY3 (touches PY0) | TRUE - shares boundary point |
| PY4 (overlaps PY0) | TRUE - partial overlap |
| PT1 (inside PY0) | TRUE - point within polygon |
| PT2 (outside PY0) | FALSE - no overlap |
| LN1 (inside PY0) | TRUE - line within polygon |
Constructors
- SpatialIntersects(Geometry, Column)
Initializes a new instance of ST_Intersects with a geometry literal and column.
- SpatialIntersects(Geometry, Function)
Initializes a new instance of ST_Intersects with a Geometry literal and function result for function chaining.
- SpatialIntersects(Column, Geometry)
Initializes a new instance of ST_Intersects with a column and geometry literal.
- SpatialIntersects(Column, Column)
Initializes a new instance of ST_Intersects with two columns for spatial joins.
- SpatialIntersects(Column, Function)
Initializes a new instance of ST_Intersects with a column and function result for function chaining.
- SpatialIntersects(Column, Geography)
Initializes a new instance of ST_Intersects with a column and geography literal.
- SpatialIntersects(Function, Geometry)
Initializes a new instance of ST_Intersects with a function result and Geometry literal for function chaining.
- SpatialIntersects(Function, Column)
Initializes a new instance of ST_Intersects with a function result and column for function chaining.
- SpatialIntersects(Function, Function)
Initializes a new instance of ST_Intersects with two function results for function chaining.
- SpatialIntersects(Function, Geography)
Initializes a new instance of ST_Intersects with a function result and Geography literal for function chaining.
- SpatialIntersects(Geography, Column)
Initializes a new instance of ST_Intersects with a geography literal and column.
- SpatialIntersects(Geography, Function)
Initializes a new instance of ST_Intersects with a Geography literal and function result for function chaining.