]> granicus.if.org Git - postgis/commitdiff
Fixed bug blessing all GEOMETRYCOLLECTIONS to MULTIPOLYGONS in postgis->GEOS
authorSandro Santilli <strk@keybit.net>
Thu, 12 Jan 2006 12:26:02 +0000 (12:26 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 12 Jan 2006 12:26:02 +0000 (12:26 +0000)
converted trough C-API

git-svn-id: http://svn.osgeo.org/postgis/trunk@2276 b70326c6-7e19-0410-871a-916f4a2858ee

CHANGES
lwgeom/lwgeom_geos_c.c

diff --git a/CHANGES b/CHANGES
index 42bebcc4148a23383cc6abc55c0097ee86971381..96fc046f603f68f4200feb37cb4a387046b2f201 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,7 @@ PostGIS 1.1.1CVS
        - Source code cleanups
        - Solaris 2.7 and MingW support improvements
        - added NumInteriorRing() alias due to OpenGIS ambiguity
+       - BUGFIX in geometrycollection handling of GEOS-CAPI connector
 
 PostGIS 1.1.0
 2005/12/21
index d869412f916d8f00a5b1bff6b920dd9986481f0e..302ffd225ccba59462e3842a97b4eb09f04870c8 100644 (file)
@@ -2551,7 +2551,7 @@ LWGEOM2GEOS(LWGEOM *lwgeom)
                        else if ( type == MULTIPOLYGONTYPE )
                                geostype = GEOS_MULTIPOLYGON;
                        else
-                               geostype = GEOS_MULTIPOLYGON;
+                               geostype = GEOS_GEOMETRYCOLLECTION;
 
                        lwc = (LWCOLLECTION *)lwgeom;
                        ngeoms = lwc->ngeoms;