Table of Contents

Class SpatialTouches

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

Represents the ST_Touches spatial predicate function that tests if two geometries touch at their boundaries but not interiors.

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

Remarks

Warning

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

The ST_Touches function returns true if the two spatial objects have at least one boundary point in common, but no interior points in common. According to the DE-9IM model, this means the intersection of their interiors is empty, but the intersection of the boundary of one with the other is not empty. Useful for finding adjacent features like neighboring parcels or connected road segments. OGC-compliant.

SpatialTouches diagram showing boundary contact scenarios

Return Type: Boolean (true/false).

RelationshipST_Touches Result
Edge touch (shared boundary line)TRUE
Corner touch (single point)TRUE
Line endpoint touches polygon edgeTRUE
Overlapping (shared interior)FALSE
Disjoint (no contact)FALSE

Constructors

SpatialTouches(Geometry, Column)

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

SpatialTouches(Geometry, Function)

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

SpatialTouches(Column, Geometry)

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

SpatialTouches(Column, Column)

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

SpatialTouches(Column, Function)

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

SpatialTouches(Column, Geography)

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

SpatialTouches(Function, Geometry)

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

SpatialTouches(Function, Column)

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

SpatialTouches(Function, Function)

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

SpatialTouches(Function, Geography)

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

SpatialTouches(Geography, Column)

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

SpatialTouches(Geography, Function)

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