]> granicus.if.org Git - postgis/commitdiff
More subdivide recursion depth for really big input polygons (OSM)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 20 Jul 2015 13:08:30 +0000 (13:08 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 20 Jul 2015 13:08:30 +0000 (13:08 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13813 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom.c

index be31e98fb5c505f07ec7ad20d7ae2aac1d75fbe9..a616c4459a0a0c83d634e199c6d6472def2aa230 100644 (file)
@@ -1893,7 +1893,7 @@ lwgeom_subdivide_recursive(const LWGEOM *geom, int maxvertices, int depth, LWCOL
 static int
 lwgeom_subdivide_recursive(const LWGEOM *geom, int maxvertices, int depth, LWCOLLECTION *col, const GBOX *clip)
 {
-       const int maxdepth = 25;
+       const int maxdepth = 50;
        int nvertices = 0;
        int i, n = 0;
        double width = clip->xmax - clip->xmin;
@@ -1927,7 +1927,7 @@ lwgeom_subdivide_recursive(const LWGEOM *geom, int maxvertices, int depth, LWCOL
        /* return value */
        if ( depth > maxdepth )
        {
-               return 0;       
+               return 0;
        }
        
        nvertices = lwgeom_count_vertices(geom);