Merge pull request #642 from mapbox/maxzoom-minzoom

Issue an error message in tile-join if minzoom is greater than maxzoom
This commit is contained in:
Eric Fischer 2018-09-07 12:07:47 -07:00 committed by GitHub
commit 03199a77a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 1.31.6
* Issue an error message in tile-join if minzoom is greater than maxzoom
## 1.31.5
* Add options to change the tilestats limits

View File

@ -3046,7 +3046,7 @@ int main(int argc, char **argv) {
}
if (minzoom > maxzoom) {
fprintf(stderr, "minimum zoom -Z cannot be greater than maxzoom -z\n");
fprintf(stderr, "%s: Minimum zoom -Z%d cannot be greater than maxzoom -z%d\n", argv[0], minzoom, maxzoom);
exit(EXIT_FAILURE);
}

View File

@ -1030,6 +1030,11 @@ int main(int argc, char **argv) {
usage(argv);
}
if (minzoom > maxzoom) {
fprintf(stderr, "%s: Minimum zoom -Z%d cannot be greater than maxzoom -z%d\n", argv[0], minzoom, maxzoom);
exit(EXIT_FAILURE);
}
if (out_mbtiles != NULL) {
if (force) {
unlink(out_mbtiles);

View File

@ -1,6 +1,6 @@
#ifndef VERSION_HPP
#define VERSION_HPP
#define VERSION "v1.31.5"
#define VERSION "v1.31.6"
#endif