Add --coordinates and --size arguments.

Construct boundary box from center coordinates and size.
This commit is contained in:
Sergey Vartanov 2021-09-16 07:44:41 +03:00
parent cb440e8a8b
commit b715e12924
8 changed files with 156 additions and 114 deletions

View file

@ -414,7 +414,10 @@ class Scheme:
continue
if not matcher.is_matched(tags, configuration):
continue
if not matcher.check_zoom_level(configuration.zoom_level):
if (
not configuration.ignore_level_matching
and not matcher.check_zoom_level(configuration.zoom_level)
):
return None, 0
matcher_tags: set[str] = set(matcher.tags.keys())
priority = len(self.node_matchers) - index