From 34926cf1dc71e165457c8b2e7dfdab83b1f8a4f4 Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Mon, 30 Jan 2023 13:21:32 -0800 Subject: [PATCH] Tile number is uncompressed, tile content is compressed --- tile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tile.cpp b/tile.cpp index 8279aa0c..91c2da83 100644 --- a/tile.cpp +++ b/tile.cpp @@ -573,10 +573,10 @@ void rewrite(drawvec &geom, int z, int nextzoom, int maxzoom, long long *bbox, u { if (!within[j]) { + serialize_int(geomfile[j]->fp, nextzoom, &geompos[j], fname); + serialize_uint(geomfile[j]->fp, tx * span + xo, &geompos[j], fname); + serialize_uint(geomfile[j]->fp, ty * span + yo, &geompos[j], fname); geomfile[j]->begin(); - geomfile[j]->serialize_int(nextzoom, &geompos[j], fname); - geomfile[j]->serialize_uint(tx * span + xo, &geompos[j], fname); - geomfile[j]->serialize_uint(ty * span + yo, &geompos[j], fname); within[j] = 1; }