postgis-dwithin
Installation
SKILL.md
ST_DWithin (Distance / Proximity Queries)
Use this skill when you need to find features within a given distance of another geometry:
- “points within X meters of a line”
- proximity searches around a point
- replacing expensive buffer + intersects patterns
Core rules
ST_DWithinis faster thanST_Distance < x- Units depend on input type:
geometry→ SRID unitsgeography→ meters
- Geometries must be in the same SRID
- Prefer
ST_DWithinover buffering when you only need a boolean test