Changeset 17f2b84 in osmose-backend


Ignore:
Timestamp:
Oct 9, 2012 10:08:52 PM (5 years ago)
Author:
Fred <fred.rodrigo@…>
Branches:
master
Children:
8b9b9cd
Parents:
909a1e0
git-author:
Fred <fred.rodrigo@…> (09/10/2012 15:48:35)
git-committer:
Fred <fred.rodrigo@…> (09/10/2012 22:08:52)
Message:

Fix level on area tag into TagFix_MultipleTag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/TagFix_MultipleTag.py

    r19bf0fa r17f2b84  
    2828        Plugin.init(self, logger) 
    2929        self.errors[30320] = { "item": 3032, "level": 1, "tag": ["tag", "highway"], "desc": {"en": u"Watch multiple tags"} } 
     30        self.errors[30323] = { "item": 3032, "level": 3, "tag": ["tag"], "desc": {"en": u"Watch multiple tags"} } 
    3031        self.errors[20800] = { "item": 2080, "level": 1, "tag": ["tag", "highway", "roundabout"], "desc": {"en": u"Tag highway missing on junction=roundabout", "fr": u"Tag highway manquant sur junction=roundabout"} } 
    3132        self.errors[20801] = { "item": 2080, "level": 1, "tag": ["tag", "highway"], "desc": {"en": u"Tag highway missing on oneway", "fr": u"Tag highway manquant sur sens unique"} } 
     
    4344 
    4445        if "area" in tags and tags["area"] == "yes" and not "barrier" in tags and not "highway" in tags: 
    45             err.append((30320, 1001, {"en": u"Bad usage of area=yes", "fr": u"Mauvais usage de area=yes"})) 
     46            err.append((30323, 1001, {"en": u"Bad usage of area=yes", "fr": u"Mauvais usage de area=yes"})) 
    4647        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": 
    47             err.append((30320, 1001, {"en": u"Bad usage of area=no", "fr": u"Mauvais usage de area=no"})) 
     48            err.append((30323, 1002, {"en": u"Bad usage of area=no", "fr": u"Mauvais usage de area=no"})) 
    4849 
    4950        return err 
Note: See TracChangeset for help on using the changeset viewer.