mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-02 01:08:14 +00:00
Don't introduce bogus geometries in clipped-away features.
This commit is contained in:
parent
08ff40e42f
commit
b7b476b36c
@ -569,6 +569,10 @@ drawvec simplify_lines(drawvec &geom, int z, int detail) {
|
||||
drawvec reorder_lines(drawvec &geom) {
|
||||
// Only reorder simple linestrings with a single moveto
|
||||
|
||||
if (geom.size() == 0) {
|
||||
return geom;
|
||||
}
|
||||
|
||||
unsigned i;
|
||||
for (i = 0; i < geom.size(); i++) {
|
||||
if (geom[i].op == VT_MOVETO) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user