Skip to main content
Calculate the difference of two geometry columns. This difference is not symmetric. It only returns the part of geometry a that is not in b. SQL reference: ST_Difference

Signature

Parameters

ColumnOrName
required
Geometry column to use in the calculation.
ColumnOrName
required
Geometry column to subtract from geometry column a.

Returns

Column
Part of geometry a that is not in b as a geometry column.