]> granicus.if.org Git - postgis/commitdiff
Transform a SRID==0 from GEOS to a SRID=-1.
authorSandro Santilli <strk@keybit.net>
Mon, 22 May 2006 14:23:59 +0000 (14:23 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 22 May 2006 14:23:59 +0000 (14:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2365 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_geos_c.c

index 302ffd225ccba59462e3842a97b4eb09f04870c8..5d2f9ffa0151176271d0df71c1a45bc52d68e88c 100644 (file)
@@ -2298,6 +2298,9 @@ GEOS2LWGEOM(GEOSGeom geom, char want3d)
        bool hasZ = GEOSHasZ(geom);
        int SRID = GEOSGetSRID(geom);
 
+       /* GEOS's 0 is equivalent to our -1 as for SRID values */
+       if ( SRID == 0 ) SRID = -1;
+
        if ( ! hasZ )
        {
                if ( want3d )