A PostGIS function to determine if geometries are within a specified distance of one another.

ST_DWithin — Returns true if the geometries are within the specified distance of one another. For geometry, units are in those of spatial reference and for geography units are in meters and measurement is defaulted to use_spheroid=true (measure around the spheroid), for a faster check, use_spheroid=false to measure along a sphere.

history | excerpt history