From: Paul Ramsey Date: Mon, 20 Jul 2015 13:08:30 +0000 (+0000) Subject: More subdivide recursion depth for really big input polygons (OSM) X-Git-Tag: 2.2.0rc1~242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab44185d7ae3540120826c437089ed59fe4d815e;p=postgis More subdivide recursion depth for really big input polygons (OSM) git-svn-id: http://svn.osgeo.org/postgis/trunk@13813 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeom.c b/liblwgeom/lwgeom.c index be31e98fb..a616c4459 100644 --- a/liblwgeom/lwgeom.c +++ b/liblwgeom/lwgeom.c @@ -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);