Don't try to revive a placeholder for a degenerate polygon with negative area

This commit is contained in:
Eric Fischer
2016-08-24 12:34:28 -07:00
parent 85fd49f28c
commit 9161b74d99
3 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -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();
}
}
}
}