From 9161b74d99d2bcebd0e6bcd8f1cfaa9b975782c3 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 24 Aug 2016 12:34:28 -0700 Subject: [PATCH] Don't try to revive a placeholder for a degenerate polygon with negative area --- CHANGELOG.md | 4 ++++ tile.cpp | 6 +++++- version.hpp | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6dc679..d6d9327 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 3293da8..8c43a17 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 2118583..1377088 100644 --- a/version.hpp +++ b/version.hpp @@ -1 +1 @@ -#define VERSION "tippecanoe v1.12.10\n" +#define VERSION "tippecanoe v1.12.11\n"