Skip to main content
Check whether two geometries (or two Box3D values) are within distance units using 3D Euclidean distance. Mirrors PostGIS ST_3DDWithin. Coordinates without a Z dimension are treated as z = 0. For Box3D inputs the test is a closed-interval 3D distance between the two cuboids; inverted bounds raise IllegalArgumentException. NULL on null input. SQL reference: ST_3DDWithin

Signature

Parameters

ColumnOrName
required
First geometry or Box3D column.
ColumnOrName
required
Second geometry or Box3D column.
Union[ColumnOrName, float]
required
Distance threshold.

Returns

Column
True if the 3D distance between a and b is ≤ distance.