postgresql - How to find all points away from some polygon? -


I need all points for 10km that should go away from the rectangle, the geometry is_geom1, the rectangular (polygon) geometry is_geom2 Among them is the SRID 4258.

I tried:

  SELECT 1 to table1, table2 WHERE ST_DWithin (table1.the_geom1, table2.the_geom2,10000) and table1.gid = 2;  

But the result is not okay.

Your query should be a big issue as the unit conversion issues Has been discussed.

You may have a problem with the unit selection or configuration.

If you are telling this, for example, the geometry should be within 10000 miles, you will have to go about everywhere, 10000 km will return everything on the same continent.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -