[postgis-users] errors while using st_dwithin

tasneem dewaswala tasneem.europe at gmail.com
Thu Dec 6 06:47:23 PST 2012


Hello,

i want to know whether two location's are within 100 meters range of each
other or not.
i tried using ST_DWITHIN, but its not giving me appropriate answers.

my query is "

select
st_dwithin(ST_GeomFromText('POINT(19.235308
72.977955)',2163),ST_GeomFromText('POINT(56.6647756667
12.877464)',2163),100) as "result";

the result that i get is "t" i.e true, which is logically not correct, the
answer i should get is false, since two locations are far beyond 100 meters
range.

Please help me forming an exact query for this.

Regards
Tasha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20121206/2fdd66ab/attachment.html>


More information about the postgis-users mailing list