I have a PostGIS table having a column "geom" having a type geometry(MultiPolygon)
and the projection epsg:4326 (degree decimal), I want to query all objects within 1000m and I use this query:
SELECT ST_AsGeoJSON(geom) FROM table
WHERE ST_DWithin(geom, 'POINT(long lat)', 1000.0);
but I always ended up querying all objects.