]> granicus.if.org Git - postgis/commitdiff
Enabling the compound curve parsing for segmentisation; reported in ticket 213
authorMark Leslie <mark.leslie@lisasoft.com>
Tue, 30 Jun 2009 07:46:40 +0000 (07:46 +0000)
committerMark Leslie <mark.leslie@lisasoft.com>
Tue, 30 Jun 2009 07:46:40 +0000 (07:46 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4232 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwsegmentize.c

index a082bb85b466d29e3023e828d1d5e790598b2de2..d45f6a75890a74368aeeed0201bd731c85f705ff 100644 (file)
@@ -407,6 +407,12 @@ lwcurvepoly_segmentize(LWCURVEPOLY *curvepoly, uint32 perQuad)
                        line = (LWLINE *)tmp;
                        ptarray[i] = ptarray_clone(line->points);
                }
+               else if(lwgeom_getType(tmp->type) == COMPOUNDTYPE)
+               {
+                       line = lwcompound_segmentize((LWCOMPOUND *)tmp, perQuad);
+                       ptarray[i] = ptarray_clone(line->points);
+                       lwfree(line);
+               }
                else
                {
                        lwerror("Invalid ring type found in CurvePoly.");