mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-02 01:08:14 +00:00
Merge pull request #41 from mapbox/minzoom-maxzoom
Add check that min is less than max. Fixes #40
This commit is contained in:
commit
a4c79e1ec2
@ -1051,6 +1051,11 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (minzoom > maxzoom) {
|
||||||
|
fprintf(stderr, "minimum zoom -Z cannot be greater than maxzoom -z\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
if (full_detail <= 0) {
|
if (full_detail <= 0) {
|
||||||
// ~0.5m accuracy at whatever zoom
|
// ~0.5m accuracy at whatever zoom
|
||||||
// 12 bits (4096 units) at z14
|
// 12 bits (4096 units) at z14
|
||||||
|
Loading…
x
Reference in New Issue
Block a user