]> granicus.if.org Git - postgis/commitdiff
Put areal part first in collection, and collapsed edges second
authorSandro Santilli <strk@keybit.net>
Sun, 28 Feb 2010 14:05:40 +0000 (14:05 +0000)
committerSandro Santilli <strk@keybit.net>
Sun, 28 Feb 2010 14:05:40 +0000 (14:05 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5350 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_geos_clean.c

index 84e899eea9e8a0ac53f4f234284fa81ffa1591da..ea005f0510e93be1eecbad704cd4dd73dc77ee83 100644 (file)
@@ -606,8 +606,8 @@ LWGEOM_GEOS_makeValidPolygon(const GEOSGeometry* gin)
        /* Collect areas and lines (if any line) */
        if ( ! GEOSisEmpty(geos_cut_edges) )
        {
-               vgeoms[1] = geos_area;
-               vgeoms[0] = geos_cut_edges;
+               vgeoms[0] = geos_area;
+               vgeoms[1] = geos_cut_edges;
                gout = GEOSGeom_createCollection(GEOS_GEOMETRYCOLLECTION, vgeoms, 2);
                if ( ! gout )   /* an exception again */
                {