Merge pull request #208 from mapbox/simplify-crash

Fix a line simplification crash when a segment degenerates to a single point
This commit is contained in:
Eric Fischer 2016-04-07 16:50:01 -07:00
commit 9d48d6a93d
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 1.9.11
* Fix a line simplification crash when a segment degenerates to a single point
## 1.9.10
* Warn if temporary disk space starts to run low

View File

@ -831,7 +831,9 @@ drawvec simplify_lines(drawvec &geom, int z, int detail) {
geom[i].necessary = 1;
geom[j - 1].necessary = 1;
douglas_peucker(geom, i, j - i, res);
if (j - i > 1) {
douglas_peucker(geom, i, j - i, res);
}
i = j - 1;
}
}

View File

@ -1 +1 @@
#define VERSION "tippecanoe v1.9.10\n"
#define VERSION "tippecanoe v1.9.11\n"