Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop duplicate warnings by Construction2.validator.mapcss #1595

Closed
wants to merge 10 commits into from
8 changes: 4 additions & 4 deletions plugins/Bicycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,19 @@ def way(self, data, tags, nds):
match = False
if not match:
capture_tags = {}
try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_67b51e41), mapcss._tag_capture(capture_tags, 0, tags, 'cycleway:right'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'oneway') == mapcss._value_capture(capture_tags, 1, 'yes')) and (mapcss.setting(self.father.config.options, 'driving_side') != 'left'))
try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_67b51e41), mapcss._tag_capture(capture_tags, 1, tags, 'cycleway:right'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'oneway') == mapcss._value_capture(capture_tags, 2, 'yes')) and (mapcss.setting(self.father.config.options, 'driving_side') != 'left'))
except mapcss.RuleAbort: pass
if not match:
capture_tags = {}
try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_67b51e41), mapcss._tag_capture(capture_tags, 0, tags, 'cycleway:left'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'oneway') == mapcss._value_capture(capture_tags, 1, '-1')) and (mapcss.setting(self.father.config.options, 'driving_side') != 'left'))
try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_67b51e41), mapcss._tag_capture(capture_tags, 1, tags, 'cycleway:left'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'oneway') == mapcss._value_capture(capture_tags, 2, '-1')) and (mapcss.setting(self.father.config.options, 'driving_side') != 'left'))
except mapcss.RuleAbort: pass
if not match:
capture_tags = {}
try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_67b51e41), mapcss._tag_capture(capture_tags, 0, tags, 'cycleway:left'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'oneway') == mapcss._value_capture(capture_tags, 1, 'yes')) and (mapcss.setting(self.father.config.options, 'driving_side') == 'left'))
try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_67b51e41), mapcss._tag_capture(capture_tags, 1, tags, 'cycleway:left'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'oneway') == mapcss._value_capture(capture_tags, 2, 'yes')) and (mapcss.setting(self.father.config.options, 'driving_side') == 'left'))
except mapcss.RuleAbort: pass
if not match:
capture_tags = {}
try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_67b51e41), mapcss._tag_capture(capture_tags, 0, tags, 'cycleway:right'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'oneway') == mapcss._value_capture(capture_tags, 1, '-1')) and (mapcss.setting(self.father.config.options, 'driving_side') == 'left'))
try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_67b51e41), mapcss._tag_capture(capture_tags, 1, tags, 'cycleway:right'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'oneway') == mapcss._value_capture(capture_tags, 2, '-1')) and (mapcss.setting(self.father.config.options, 'driving_side') == 'left'))
except mapcss.RuleAbort: pass
if match:
# -osmoseTags:list("cycleway","fix:survey")
Expand Down
Loading