diff --git a/CHANGELOG.md b/CHANGELOG.md index f6dc6798..d6d9327c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.12.11 + +* Don't try to revive a placeholder for a degenerate polygon that had negative area + ## 1.12.10 * Pass feature IDs through in tile-join diff --git a/tile.cpp b/tile.cpp index 3293da89..8c43a17f 100644 --- a/tile.cpp +++ b/tile.cpp @@ -498,7 +498,11 @@ void *partial_feature_worker(void *v) { } if (geoms[g].size() < 3) { - geoms[g] = revive_polygon(before, area / geoms.size(), z, line_detail); + if (area > 0) { + geoms[g] = revive_polygon(before, area / geoms.size(), z, line_detail); + } else { + geoms[g].clear(); + } } } } diff --git a/version.hpp b/version.hpp index 21185839..13770883 100644 --- a/version.hpp +++ b/version.hpp @@ -1 +1 @@ -#define VERSION "tippecanoe v1.12.10\n" +#define VERSION "tippecanoe v1.12.11\n"