mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-04 01:15:41 +02:00
Move feature type to index so point skipping can avoid looking up geometry
Which should avoid having to page the geometry in if there is more data than will fit in memory
This commit is contained in:
@@ -376,10 +376,7 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns
|
||||
}
|
||||
dup.insert(std::pair<long long, int>(i->fpos, 1));
|
||||
|
||||
int t;
|
||||
char *meta = metabase + i->fpos;
|
||||
deserialize_int(&meta, &t);
|
||||
|
||||
int t = i->type;
|
||||
if (t == VT_POINT) {
|
||||
seq++;
|
||||
|
||||
@@ -390,6 +387,7 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns
|
||||
}
|
||||
}
|
||||
|
||||
char *meta = metabase + i->fpos;
|
||||
drawvec geom = decode_geometry(&meta, z, tx, ty, line_detail);
|
||||
|
||||
bool reduced = false;
|
||||
|
||||
Reference in New Issue
Block a user