Write Spatial Query

Write or fix a spatial SQL query in PostGIS — spatial joins, nearest-neighbor (KNN), buffers, ST_DWithin proximity — so it uses the GiST index and returns sensible units. Reach for this when a query is slow, returns degrees, or you need an index-aware ST_ query. Diagnoses the common smells (no index, degrees-not-metres, SRID mismatch). Used by `geospatial-data-engineer` (primary).

mcorbett51090 Updated

File contents

mcorbett51090/RavenClaude commit 2d00032595

Frequently asked questions

npx get-skill add mcorbett51090/write-spatial-query