Table of Contents

Class SpatialDifference

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

Represents the ST_Difference spatial analysis function that computes the spatial difference of two geometries.

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

Remarks

The ST_Difference function returns a geometry representing the point set difference of two spatial objects (the set of points in the first geometry that are not in the second). This operation effectively "subtracts" one geometry from another, removing the overlapping portion. Useful for finding the portion of a parcel not covered by a building, removing exclusion zones, or clipping operations. The result geometry type depends on the inputs and their spatial relationship. OGC-compliant.

Constructors

SpatialDifference(Geometry, Column)

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

SpatialDifference(Column, Geometry)

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

SpatialDifference(Column, Geography)

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

SpatialDifference(Geography, Column)

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