Fix seeking within compressed feature streams

This commit is contained in:
Erica Fischer
2023-02-01 13:58:12 -08:00
parent d271cf233d
commit 373227e422
+5
View File
@@ -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);
if (geoms->within) {
geoms->end(geompos_in); 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;