[postgis-users] Distance function is not in meters

2008-03-18 Thread davidj2k
I am trying to find the distance from a point to a polygon object and when I use the distance(geometry,geometry) function it returns something that is not in meters, I have been doing searches and all the examples of using this function shows it in meters but that is not what I am seeing for examp

Re: [postgis-users] Distance function is not in meters

2008-03-18 Thread Paul Ramsey
distance_sphere(GeometryFromText('POINT(10 10)',4326), GeometryFromText('POINT(11 11)',4326)) On 3/18/08, davidj2k <[EMAIL PROTECTED]> wrote: > > I am trying to find the distance from a point to a polygon object and when I > use the distance(geometry,geometry) function it returns something that

Re: [postgis-users] Distance function is not in meters

2008-03-18 Thread David Jordan
If I use sphere they have to both be points, the actual search I am doing is distance(the_geom, GeometryFromText('POINT(10 10)',4326)) the_geom field is a polygon or a multipolygon Paul Ramsey <[EMAIL PROTECTED]> wrote: distance_sphere(GeometryFromText('POINT(10 10)',4326), GeometryFrom

Re: [postgis-users] Distance function is not in meters

2008-03-18 Thread Nicolas Ribot
> If I use sphere they have to both be points, the actual search I am doing is > distance(the_geom, GeometryFromText('POINT(10 10)',4326)) > > the_geom field is a polygon or a multipolygon > Then you will have to transform (reproject) your data into a metric projection system where distance betwee

RE: [postgis-users] Distance function is not in meters

2008-03-18 Thread Bruce Rindahl
tgis-users] Distance function is not in meters If I use sphere they have to both be points, the actual search I am doing is distance(the_geom, GeometryFromText('POINT(10 10)',4326)) the_geom field is a polygon or a multipolygon Paul Ramsey <[EMAIL PROTECTED]> wrote: distan