[postgis-users] distance function error

David TECHER davidtecher at yahoo.fr
Sat Oct 25 00:16:16 PDT 2003


Hi, John

> I'm trying to find a point inside a polygon.  I
> found something on this list
> that said to use the distance function.  But for me
> it won't seem to let me
> compare two different geometries.  Here is my test
> query and error message.
> 
> select distance(GeometryFromText('POINT(0
> 0)',4326),admin02.the_geom)
> from admin02
> 
> ERROR:  Operation on two GEOMETRIES with different
> SRIDs
> 
> Can you help?

I think you should specify the same srid for the
point(0,0) and admin02.the_geom.

4326 is the srid of the_geom ???


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



More information about the postgis-users mailing list