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