A and B is less than or equal to distance. Mirrors PostGIS ST_3DDWithin. Polymorphic over input type:
(Geometry, Geometry, Double)— 3D distance via JTS; coordinates without a Z dimension are treated asz = 0.(Box3D, Box3D, Double)— closed-interval 3D distance between two axis-aligned cuboids. ThrowsIllegalArgumentExceptionon inverted bounds (xmin > xmax,ymin > ymax, orzmin > zmax).
ST_DWithin and ST_3DDWithin.
NULL if any argument is NULL.
Signatures
Parameters
The first geometry or 3D bounding box.
The second geometry or 3D bounding box.
The maximum 3D distance between
A and B.Return type
true if the 3D distance between A and B is within distance.Example
Optimization
ST_3DDWithin(a, b, distance) between two Box3D columns (or two geometry columns) is planned as a distance join. The planner expands each shape’s XY footprint by distance for the R-tree pass — a valid superset filter, since the XY distance between two shapes is no greater than their 3D distance — and re-checks the full 3D distance per candidate pair.
