mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
Reindex features by their first coordinates so they coalesce better
This commit is contained in:
@@ -992,7 +992,11 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns
|
||||
struct coalesce c;
|
||||
|
||||
c.type = t;
|
||||
c.index = i->index;
|
||||
if (geom.size() > 0) {
|
||||
c.index = encode(geom[0].x, geom[0].y);
|
||||
} else {
|
||||
c.index = i->index;
|
||||
}
|
||||
c.geom = geom;
|
||||
c.metasrc = meta;
|
||||
c.coalesced = false;
|
||||
|
||||
Reference in New Issue
Block a user