Don't serialize the per-feature minzoom until geometry merging time

This commit is contained in:
Eric Fischer
2016-10-10 15:31:09 -07:00
parent 04157e7728
commit c8a1b082e0
5 changed files with 8 additions and 5 deletions
+1
View File
@@ -223,6 +223,7 @@ static void merge(struct mergelist *merges, int nmerges, unsigned char *map, FIL
struct index *ix = (struct index *) (map + head->start);
fwrite_check(geom_map + ix->start, 1, ix->end - ix->start, geom_out, "merge geometry");
*geompos += ix->end - ix->start;
serialize_byte(geom_out, 0, geompos, "merge geometry");
// Count this as an 75%-accomplishment, since we already 25%-counted it
*progress += (ix->end - ix->start) * 3 / 4;