mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +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;
|
struct coalesce c;
|
||||||
|
|
||||||
c.type = t;
|
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.geom = geom;
|
||||||
c.metasrc = meta;
|
c.metasrc = meta;
|
||||||
c.coalesced = false;
|
c.coalesced = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user