mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
The maxzoom=0 case couldn't have worked
This commit is contained in:
@@ -444,6 +444,8 @@ void read_json(FILE *f, char *fname, char *layername, int maxzoom, int minzoom,
|
|||||||
struct index ix;
|
struct index ix;
|
||||||
ix.index = encode(cx, cy);
|
ix.index = encode(cx, cy);
|
||||||
ix.fpos = start;
|
ix.fpos = start;
|
||||||
|
ix.type = mb_geometry[t];
|
||||||
|
ix.maxzoom = z;
|
||||||
fwrite_check(&ix, sizeof(struct index), 1, indexfile, fname, jp);
|
fwrite_check(&ix, sizeof(struct index), 1, indexfile, fname, jp);
|
||||||
} else {
|
} else {
|
||||||
for (z = maxzoom; z >= 1; z--) {
|
for (z = maxzoom; z >= 1; z--) {
|
||||||
|
|||||||
Reference in New Issue
Block a user