mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 02:15:41 +02:00
Fix seeking within compressed feature streams
This commit is contained in:
@@ -2264,7 +2264,10 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
|
|||||||
if (compressed_input) {
|
if (compressed_input) {
|
||||||
long long n = *geompos_in;
|
long long n = *geompos_in;
|
||||||
printf("-------- seek: end %lld to %lld\n", n, og);
|
printf("-------- seek: end %lld to %lld\n", n, og);
|
||||||
geoms->end(geompos_in);
|
if (geoms->within) {
|
||||||
|
geoms->end(geompos_in);
|
||||||
|
}
|
||||||
|
|
||||||
geoms->begin();
|
geoms->begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2273,6 +2276,8 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
|
|||||||
exit(EXIT_SEEK);
|
exit(EXIT_SEEK);
|
||||||
}
|
}
|
||||||
*geompos_in = og;
|
*geompos_in = og;
|
||||||
|
geoms->zs.avail_in = 0;
|
||||||
|
geoms->zs.avail_out = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prefilter_write = -1, prefilter_read = -1;
|
int prefilter_write = -1, prefilter_read = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user