diff --git a/overzoom.cpp b/overzoom.cpp index b22399ce..a4b18b83 100644 --- a/overzoom.cpp +++ b/overzoom.cpp @@ -11,7 +11,7 @@ extern char *optarg; extern int optind; int detail = 12; // tippecanoe-style: mvt extent == 1 << detail -int buffer = 5; // tippecanoe-style: mvt buffer == extent * buffer / 256; +int buffer = 5; // tippecanoe-style: mvt buffer == extent * buffer / 256; std::set keep; diff --git a/tile.cpp b/tile.cpp index 950fb2b7..945c17de 100644 --- a/tile.cpp +++ b/tile.cpp @@ -640,6 +640,10 @@ void *partial_feature_worker(void *v) { std::vector geoms; // artifact of former polygon-splitting to reduce geometric complexity geoms.push_back(geom); (*partials)[i].geoms = geoms; + + if (t == VT_POLYGON && !prevent[P_POLYGON_SPLIT]) { + geoms = chop_polygon(geoms); + } } return NULL;