[postgis-users] More Semantics: SRID Matching

pcreso at pcreso.com pcreso at pcreso.com
Thu Jan 29 12:44:35 PST 2009


Hi Paul,

I think that is sensible, however it might be worth issuing a warning about the assumption being made in such cases, just in case it is a user error & they get what they asked for instead of what they want.

But even without the warning, I agree.

Cheers,
  
  Brent Wood


--- On Fri, 1/30/09, Paul Ramsey <pramsey at opengeo.org> wrote:

> From: Paul Ramsey <pramsey at opengeo.org>
> Subject: [postgis-users] More Semantics: SRID Matching
> To: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>
> Date: Friday, January 30, 2009, 9:23 AM
> 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