Skip to main content
Return the intersection geometry of A and B ST_Intersection

Signatures

Parameters

A
Geometry
required
The input geometry.
B
Geometry
required
The second geometry.

Return type

The resulting geometry.
If you encounter a TopologyException with the message “found non-noded intersection”, try enabling the OverlayNG algorithm by setting the following Spark configuration:
The OverlayNG algorithm is more robust than the legacy overlay implementation in JTS and handles many edge cases that would otherwise cause errors.

Example