mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 02:15:41 +02:00
Fix a line simplification crash when a segment degenerates to a single point
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## 1.9.11
|
||||||
|
|
||||||
|
* Fix a line simplification crash when a segment degenerates to a single point
|
||||||
|
|
||||||
## 1.9.10
|
## 1.9.10
|
||||||
|
|
||||||
* Warn if temporary disk space starts to run low
|
* Warn if temporary disk space starts to run low
|
||||||
|
|||||||
+3
-1
@@ -831,7 +831,9 @@ drawvec simplify_lines(drawvec &geom, int z, int detail) {
|
|||||||
geom[i].necessary = 1;
|
geom[i].necessary = 1;
|
||||||
geom[j - 1].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;
|
i = j - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user