]> granicus.if.org Git - postgis/commitdiff
Lower limit on max vertices
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 29 May 2015 21:21:51 +0000 (21:21 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 29 May 2015 21:21:51 +0000 (21:21 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13583 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom.c

index c6e2b782d159029faa4a16479918831e2960c4be..a9ed109725211f90a5ba040f4b2acc817f62cafa 100644 (file)
@@ -2055,7 +2055,7 @@ lwgeom_subdivide(const LWGEOM *geom, int maxvertices)
        const int minmaxvertices = 16;
        LWCOLLECTION *col;
 
-       if ( maxvertices < 16 )
+       if ( maxvertices < 8 )
        {
                lwerror("%s: cannot subdivide to fewer than %d vertices per output", __func__, minmaxvertices);
        }