mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-08 12:00:26 +00:00
The maxzoom=0 case couldn't have worked
This commit is contained in:
parent
241d96e57c
commit
7f6a5dc005
@ -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--) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user