Instantly share code, notes, and snippets.
SELECT ST_AsGeoJSON(linestring) FROM atomic_ways JOIN polygons ON ST_DWITHIN(polygon::geography, linestring::geography, 10) WHERE polygons.id = 5386
Sorry, something went wrong.
SELECT ST_AsGeoJSON(linestring) FROM atomic_ways JOIN polygons ON ST_DWITHIN(polygon::geography, linestring::geography, 10) WHERE polygons.id = 5386