[postgis-devel] PostGIS 1.1.0 - call for closeup

strk at refractions.net strk at refractions.net
Mon Dec 12 04:37:27 PST 2005


On Mon, Dec 12, 2005 at 12:56:25PM +0100, Markus Schaber wrote:
> Hi, Strk,
> 
> strk at refractions.net wrote:
> 
> > - Treat geometries with SRID=-1 as compatible with all other
> >   geometries in geometry operations
> 
> I had sent an first patch for this issue to the list earlier for
> discussion, but did not receive any comments yet about the open issues.

Markus, I just found the patch too limited, sorry.

I took the path you suggested about providing a separate function
to check SRID match (you suggested it but didn't provide it in patch).
The new function is errorIfSRIDmismatch(int, int).

Currenlty only the JTS and GEOS (C++ and C wrappers) use it,
it will be good to convert all checks to use this, so at least
we will have a central point to change this when we come to
a decision about it. 

About the decision to switch itself: I think that considering -1
a compatible-to-all number cannot be limited to function checking,
but should be also handled by triggers on spatial tables.

This doesn't mean that I'm convinced we should do this, but only
that we must be consistent.

--strk;



More information about the postgis-devel mailing list