Table of Contents

Class SpatialCrosses

Namespace
YndigoBlue.Velocity.Functions
Assembly
YndigoBlue.Velocity.dll

Represents the ST_Crosses spatial predicate function that tests if two geometries cross each other.

public class SpatialCrosses : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
Inheritance
SpatialCrosses
Implements

Remarks

Warning

Spatial functions are not available in the Community Edition of Velocity. They require the Full Edition.

The ST_Crosses function returns true if the two spatial objects have some, but not all, interior points in common, and the dimension of the intersection is less than the maximum dimension of the two geometries. This typically applies to cases where a line crosses a polygon, or a line crosses another line. According to the DE-9IM model, this represents a specific type of intersection pattern. Useful for finding features that pass through other features, like roads crossing parcels or pipelines crossing boundaries. OGC-compliant.

SpatialCrosses diagram showing crossing scenarios

Return Type: Boolean (true/false).

RelationshipST_Crosses Result
Two lines intersecting at interiorTRUE
Line enters and exits polygonTRUE
Lines touch only at endpointFALSE (use ST_Touches)
Line fully inside polygonFALSE (use ST_Within)

Constructors

SpatialCrosses(Geometry, Column)

Initializes a new instance of ST_Crosses with a geometry literal and column.

SpatialCrosses(Geometry, Function)

Initializes a new instance of ST_Crosses with a Geometry literal and function result for function chaining.

SpatialCrosses(Column, Geometry)

Initializes a new instance of ST_Crosses with a column and geometry literal.

SpatialCrosses(Column, Column)

Initializes a new instance of ST_Crosses with two columns for spatial joins.

SpatialCrosses(Column, Function)

Initializes a new instance of ST_Crosses with a column and function result for function chaining.

SpatialCrosses(Column, Geography)

Initializes a new instance of ST_Crosses with a column and geography literal.

SpatialCrosses(Function, Geometry)

Initializes a new instance of ST_Crosses with a function result and Geometry literal for function chaining.

SpatialCrosses(Function, Column)

Initializes a new instance of ST_Crosses with a function result and column for function chaining.

SpatialCrosses(Function, Function)

Initializes a new instance of ST_Crosses with two function results for function chaining.

SpatialCrosses(Function, Geography)

Initializes a new instance of ST_Crosses with a function result and Geography literal for function chaining.

SpatialCrosses(Geography, Column)

Initializes a new instance of ST_Crosses with a geography literal and column.

SpatialCrosses(Geography, Function)

Initializes a new instance of ST_Crosses with a Geography literal and function result for function chaining.