Class SpatialIntersection
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the ST_Intersection spatial analysis function that computes the spatial intersection of two geometries.
public class SpatialIntersection : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
SpatialIntersection
- Implements
Remarks
Warning
Spatial functions are not available in the Community Edition of Velocity. They require the Full Edition.
The ST_Intersection function returns a geometry representing the point set intersection of two spatial objects (the set of points that are in both geometries). The result can be a point, line, polygon, or collection, depending on how the inputs intersect. If the geometries do not intersect, an empty geometry is returned. This function is useful for finding overlapping areas, clipping geometries, or spatial overlay operations. OGC-compliant.
Return Types by Relationship:
| Relationship | Intersection Result |
|---|---|
| B completely inside A | B (entire geometry) |
| A and B partially overlap | POLYGON (overlapping region) |
| A and B touch at point | POINT |
| A and B touch at edge | LINESTRING |
| No overlap | EMPTY geometry |
Example Results: ST_Intersection(PY0, X)
| Shape X | Intersection Result |
|---|---|
| PY1 (inside PY0) | PY1 - completely contained |
| PY2 (outside PY0) | EMPTY - no overlap |
| PY3 (touches PY0) | POINT - single touch point |
| PY4 (intersects PY0) | POLYGON - overlapping area |
| PT1 (inside PY0) | PT1 - point within polygon |
| PT2 (outside PY0) | EMPTY - no overlap |
| LN1 (inside PY0) | LN1 - line within polygon |
Constructors
- SpatialIntersection(Geometry, Column)
Initializes a new instance of ST_Intersection with a geometry literal and column.
- SpatialIntersection(Geometry, Function)
Initializes a new instance of ST_Intersection with a Geometry literal and function result for function chaining.
- SpatialIntersection(Column, Geometry)
Initializes a new instance of ST_Intersection with a column and geometry literal.
- SpatialIntersection(Column, Column)
Initializes a new instance of ST_Intersection with two columns for spatial joins.
- SpatialIntersection(Column, Function)
Initializes a new instance of ST_Intersection with a column and function result for function chaining.
- SpatialIntersection(Column, Geography)
Initializes a new instance of ST_Intersection with a column and geography literal.
- SpatialIntersection(Function, Geometry)
Initializes a new instance of ST_Intersection with a function result and Geometry literal for function chaining.
- SpatialIntersection(Function, Column)
Initializes a new instance of ST_Intersection with a function result and column for function chaining.
- SpatialIntersection(Function, Function)
Initializes a new instance of ST_Intersection with two function results for function chaining.
- SpatialIntersection(Function, Geography)
Initializes a new instance of ST_Intersection with a function result and Geography literal for function chaining.
- SpatialIntersection(Geography, Column)
Initializes a new instance of ST_Intersection with a geography literal and column.
- SpatialIntersection(Geography, Function)
Initializes a new instance of ST_Intersection with a Geography literal and function result for function chaining.