[postgis-users] how to use distances in kilometers in dwithin query?

Paragon Corporation lr at pcorp.us
Mon Feb 2 12:55:31 PST 2009

You can't.  It always uses the units of the spatial reference system your
data is stored in.

What spatial ref are you using?


-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of Davi
Sent: Monday, February 02, 2009 3:12 PM
To: PostGIS Users Discussion
Subject: [postgis-users] how to use distances in kilometers in dwithin

Hi list,

Regarding the st_dwithin(geometry, geometry, float) function, I would like
to know how can I pass the distance argument in kilometers. In our tests we
have been using a dummy value of 0.003, but we don't even know which units
it is in.

Thanks in advance,
Davi Pires


eco-blog: http://tarjaverde.wordpress.com
postgis-users mailing list
postgis-users at postgis.refractions.net

More information about the postgis-users mailing list