mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-23 18:40:17 +00:00
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:
commit
03199a77a5
@ -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
|
||||
|
2
main.cpp
2
main.cpp
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef VERSION_HPP
|
||||
#define VERSION_HPP
|
||||
|
||||
#define VERSION "v1.31.5"
|
||||
#define VERSION "v1.31.6"
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user