Changeset 9dad314 in osmose-backend


Ignore:
Timestamp:
May 30, 2013 8:46:22 PM (6 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
b0dd6ef
Parents:
e315e4e
Message:

Fix Highway_Parking_Lane on parking:condition:right:EXTRA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/Highway_Parking_Lane.py

    rd1d2ae0 r9dad314  
    4343        sides = [i for i in sides if i not in ("left", "right", "both")] 
    4444 
    45         conditions = map(lambda tag: tag.replace(":condition:", ":lane:"), filter(lambda tag: tag.startswith(self.parking_condition), tags)) 
     45        conditions = map(lambda tag: ":".join(tag.split(":")[0:3]).replace(":condition:", ":lane:"), filter(lambda tag: tag.startswith(self.parking_condition), tags)) 
    4646        for c in conditions: 
    4747            if c not in tags: 
     
    8282    t = {"highway": "r", "parking:lane:both:parallel": "t"} 
    8383    if a.way(None, t, None): 
    84         raise "no fail" 
     84        raise "no fail 1" 
    8585    t = {"highway": "r", "parking:condition:both": "private", "parking:lane:both": "perpendicular"} 
    8686    if a.way(None, t, None): 
    87         raise "no fail" 
     87        raise "no fail 2" 
     88    t = {"highway": "r", "parking:lane:right": "perpendicular", "parking:condition:right": "customers", "parking:condition:right:capacity": "19"} 
     89    if a.way(None, t, None): 
     90        raise "no fail 3" 
Note: See TracChangeset for help on using the changeset viewer.