« Return to Thread: Can PostGIS do Route optimization / shortest pass

distance() Unit's

by Adam-44 :: Rate this Message:

Reply to Author | View in Thread

I'm finding all the cities within a certian distance using the DISTANCE
function.

What is the unit of measurement for the distance?
Can it be set to miles or feet?

I checked the documentation but didn't find anything.

geo=# SELECT name FROM city_locations WHERE distance (the_geom,
'POINT( -88.0501 41.8616 )' ) < 0.1;
       name
------------------
 Addison
 Glendale Heights
 Carol Stream
 Villa Park
 North Glen Ellyn
 Lombard
 Glen Ellyn
 York Center
 Wheaton
 Oakbrook Terrace
 Highland Hills
 Valley View
 Downers Grove
 Westmont
 Lisle
(15 rows)

geo=#

_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users

 « Return to Thread: Can PostGIS do Route optimization / shortest pass