Issue an error message in tile-join if minzoom is greater than maxzoom

This commit is contained in:
Eric Fischer
2018-09-07 10:08:02 -07:00
parent 9949d7ed1a
commit 7aebce7e0e
4 changed files with 11 additions and 2 deletions
+5
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);