[postgis-users] More Semantics: SRID Matching

Paul Ramsey pramsey at opengeo.org
Thu Jan 29 12:23:20 PST 2009


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



More information about the postgis-users mailing list