Changeset af4e049 in osmose-backend


Ignore:
Timestamp:
Nov 2, 2012 10:12:32 AM (5 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
cb24692
Parents:
2e370eb
Message:

Fix RATP error class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • analysers/analyser_merge_ratp.py

    r2e370eb raf4e049  
    3636    """ 
    3737 
    38     def __init__(self, config, logger, select, osmTags, defaultTag): 
    39         self.missing_official = {"item":"8040", "class": 1, "level": 3, "tag": ["merge", "railway"], "desc":{"fr":u"Station RATP non intégrée"} } 
    40         self.possible_merge   = {"item":"8041", "class": 3, "level": 3, "tag": ["merge", "railway"], "desc":{"fr":u"Station RATP, proposition d'intégration"} } 
     38    def __init__(self, config, logger, clas, select, osmTags, defaultTag): 
     39        self.missing_official = {"item":"8040", "class": 1+10*clas, "level": 3, "tag": ["merge", "railway"], "desc":{"fr":u"Station RATP non intégrée"} } 
     40        self.possible_merge   = {"item":"8041", "class": 3+10*clas, "level": 3, "tag": ["merge", "railway"], "desc":{"fr":u"Station RATP, proposition d'intégration"} } 
    4141        Analyser_Merge.__init__(self, config, logger) 
    4242        self.officialURL = "http://data.ratp.fr/fr/les-donnees/fiche-de-jeu-de-donnees/dataset/positions-geographiques-des-stations-du-reseau-ratp.html" 
     
    6969class Analyser_Merge_Ratp_Bus(_Analyser_Merge_Ratp): 
    7070    def __init__(self, config, logger = None): 
    71         _Analyser_Merge_Ratp.__init__(self, config, logger, "bus", {"highway": "bus_stop"}, {"highway": "bus_stop", "public_transport": "stop_position", "bus": "yes"}) 
     71        _Analyser_Merge_Ratp.__init__(self, config, logger, 3, "bus", {"highway": "bus_stop"}, {"highway": "bus_stop", "public_transport": "stop_position", "bus": "yes"}) 
    7272 
    7373class Analyser_Merge_Ratp_Metro(_Analyser_Merge_Ratp): 
    7474    def __init__(self, config, logger = None): 
    75         _Analyser_Merge_Ratp.__init__(self, config, logger, "metro", {"railway": "station"}, {"railway": "station"}) 
     75        _Analyser_Merge_Ratp.__init__(self, config, logger, 0, "metro", {"railway": "station"}, {"railway": "station"}) 
    7676 
    7777class Analyser_Merge_Ratp_RER(_Analyser_Merge_Ratp): 
    7878    def __init__(self, config, logger = None): 
    79         _Analyser_Merge_Ratp.__init__(self, config, logger, "rer", {"railway": "station"}, {"railway": "station"}) 
     79        _Analyser_Merge_Ratp.__init__(self, config, logger, 1, "rer", {"railway": "station"}, {"railway": "station"}) 
    8080 
    8181class Analyser_Merge_Ratp_Tram(_Analyser_Merge_Ratp): 
    8282    def __init__(self, config, logger = None): 
    83         _Analyser_Merge_Ratp.__init__(self, config, logger, "tram", {"railway": "tram_stop"}, {"railway": "tram_stop", "public_transport": "stop_position", "tram": "yes"}) 
     83        _Analyser_Merge_Ratp.__init__(self, config, logger, 2, "tram", {"railway": "tram_stop"}, {"railway": "tram_stop", "public_transport": "stop_position", "tram": "yes"}) 
Note: See TracChangeset for help on using the changeset viewer.