mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 01:45:41 +02:00
Much faster at low zooms to check for duplicates before simplifying
This commit is contained in:
@@ -366,8 +366,13 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns
|
|||||||
|
|
||||||
struct index *i;
|
struct index *i;
|
||||||
for (i = start; i < end; i++) {
|
for (i = start; i < end; i++) {
|
||||||
int t;
|
struct pool_val *pv = pool_long_long(&dup, &i->fpos, 0);
|
||||||
|
if (pv->n == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
pv->n = 0;
|
||||||
|
|
||||||
|
int t;
|
||||||
char *meta = metabase + i->fpos;
|
char *meta = metabase + i->fpos;
|
||||||
deserialize_int(&meta, &t);
|
deserialize_int(&meta, &t);
|
||||||
|
|
||||||
@@ -415,12 +420,6 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns
|
|||||||
to_tile_scale(geom, z, line_detail);
|
to_tile_scale(geom, z, line_detail);
|
||||||
|
|
||||||
if (t == VT_POINT || to_feature(geom, NULL)) {
|
if (t == VT_POINT || to_feature(geom, NULL)) {
|
||||||
struct pool_val *pv = pool_long_long(&dup, &i->fpos, 0);
|
|
||||||
if (pv->n == 0) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
pv->n = 0;
|
|
||||||
|
|
||||||
struct coalesce c;
|
struct coalesce c;
|
||||||
|
|
||||||
c.type = t;
|
c.type = t;
|
||||||
|
|||||||
Reference in New Issue
Block a user