[postgis-users] More Semantics: SRID Matching

Jan Hartmann j.l.h.hartmann at uva.nl
Thu Jan 29 13:52:01 PST 2009


I wouldn't do that. My experience is that you'll run into errors that 
are very hard to detect when you allow this sort of "default" behavior. 
What's wrong whith an extra setsrid or so?

Jan

Paul Ramsey wrote:
> I just did this:
>
> aggtest=# select name from tm_world_2 where st_dwithin(the_geom,
> 'POINT(32.4122 -21.2178)', 0.0001);
> ERROR:  Operation on two geometries with different SRIDs
>
> And you know what, that seems a bit harsh to me. Given an operation
> where one SRID is known (st_srid(the_geom) == 4326), and the other is
> unknown (-1), can we not simply assume that everything is in the known
> SRID?
>
> Comments?
>
> P
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>   



More information about the postgis-users mailing list