From 7f6a5dc00544e6ab4b8e42644029685dc997af38 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Thu, 6 Nov 2014 11:05:09 -0800 Subject: [PATCH] The maxzoom=0 case couldn't have worked --- geojson.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geojson.c b/geojson.c index ff498f61..2c170206 100644 --- a/geojson.c +++ b/geojson.c @@ -444,6 +444,8 @@ void read_json(FILE *f, char *fname, char *layername, int maxzoom, int minzoom, struct index ix; ix.index = encode(cx, cy); ix.fpos = start; + ix.type = mb_geometry[t]; + ix.maxzoom = z; fwrite_check(&ix, sizeof(struct index), 1, indexfile, fname, jp); } else { for (z = maxzoom; z >= 1; z--) {