[postgis-devel] Bye bye -1

Paul Ramsey pramsey at opengeo.org
Wed Sep 28 15:36:15 PDT 2011


OK, so we never did actually swap over the SRID=0, so there's a mix of
behavior in places, the 0-based behavior in typmod is because it
inherits from geography, which was build with 0 as the unknown.
So swapping over, a conundrum... what to do with -1 once we've swapped?
One temptation is to map it to 0. But then we get this:

postgis20=# select st_srid('SRID=-1;POINT(0 0)');
 st_srid
---------
       0
(1 row)

Some folks might not like that.

P.



More information about the postgis-devel mailing list