[postgis-devel] Hey, you broke... (SRID=0)

Sandro Santilli strk at keybit.net
Thu Sep 29 09:39:53 PDT 2011


On Thu, Sep 29, 2011 at 08:17:15AM -0700, Paul Ramsey wrote:
> On Thu, Sep 29, 2011 at 2:00 AM, Sandro Santilli <strk at keybit.net> wrote:
> >
> > BTW, does allowing -1 mean we need signed SRID in typmod and thus
> > half the MAXALLOWEDSRID ?
> 
> The current MAX is actually 1000000 so, it's already half what we
> could theoretically stuff into the space.

Uhm, then maybe we can keep revert to -1 for the least surprise.

> Note though that as of now (and in the past) negative SRIDs are allowed.
> It's just that -1 has the special meaning.

How about stopping to support them (at the SQL level, that is) ?
Any value <= 0 could be internally converted to "no srid"
and reported outside as -1 (or null, see #1223).

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list