Fix tile-join crash when trying to merge empty tilesets with --overzoom (#138)

* Fix tile-join crash when trying to merge empty tilesets with --overzoom

* Add an option not to reduce tiny polygons to dust at maxzoom

* Add test for prevention of tiny polygon reduction at maxzoom

* Change version number
This commit is contained in:
Erica Fischer
2023-08-31 13:02:03 -07:00
committed by GitHub
parent 2ec6180003
commit e6d05bc317
11 changed files with 409 additions and 4 deletions
+7
View File
@@ -544,6 +544,13 @@ struct reader {
overzoom_consumed_at_this_zoom = false;
}
if (overzoomed_tiles.size() == 0) {
// we have nothing to overzoom; give up
current_tile_is_overzoomed = false;
zoom = 32;
return;
}
auto xy = overzoomed_tiles.front();
overzoomed_tiles.erase(overzoomed_tiles.begin());