Changeset e566a8b in osmose-backend


Ignore:
Timestamp:
Sep 29, 2014 9:24:30 PM (5 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
a910761
Parents:
ce489c5
Message:

Fix boolean to allow area=yes + railway=platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/TagFix_MultipleTag.py

    r52098d6 re566a8b  
    6161            err.append((20801, 0, {})) 
    6262 
    63         if "area" in tags and tags["area"] == "yes" and not "barrier" in tags and not "highway" in tags and (not "railway" in tags or tags["railway"] == "platform"): 
     63        if "area" in tags and tags["area"] == "yes" and not ("barrier" in tags or "highway" in tags or ("railway" in tags and tags["railway"] == "platform")): 
    6464            err.append((30323, 1001, {"en": u"Bad usage of area=yes", "fr": u"Mauvais usage de area=yes"})) 
    6565        if "area" in tags and tags["area"] == "no" and not "aeroway" in tags and not "building" in tags and not "landuse" in tags and not "leisure" in tags and not "natural": 
     
    108108        for t in [{"highway":"", "cycleway": "opposite"}, 
    109109                  {"highway":"primary", "tunnel": "yes"}, 
    110                   {"area":"yes", "railway": "platform"}, 
     110                  {"area":"yes", "railway": "rail"}, 
    111111#                  {"power":"line", "voltage": "1"}, 
    112112                 ]: 
     
    114114 
    115115        for t in [{"highway":"", "cycleway": "opposite", "oneway": "yes"}, 
     116                  {"area":"yes", "railway": "platform"}, 
    116117                 ]: 
    117118            assert not a.way(None, t, None), t 
Note: See TracChangeset for help on using the changeset viewer.