Changeset 152787a in osmose-backend


Ignore:
Timestamp:
Dec 30, 2014 10:41:48 PM (5 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
952ae8e
Parents:
429ec7b
Message:

Switch trentino-alto-adige to language it and de

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osmose_config.py

    r89e9e82 r152787a  
    541541 
    542542class default_country_it(default_country): 
    543     def __init__(self, part, country, polygon_id=None, proj=None, analyser_options=None, 
     543    def __init__(self, part, country, polygon_id=None, proj=None, analyser_options={}, 
    544544                 download_repo=FMACH, download_country=None): 
    545545 
    546         if not analyser_options: 
    547             analyser_options = {} 
    548         analyser_options.update({"country": "IT", "language": "it", "proj": proj}) 
    549         default_country.__init__(self, part, country, polygon_id, analyser_options, 
     546        _analyser_options = {"country": "IT", "language": "it", "proj": proj} 
     547        _analyser_options.update(analyser_options) 
     548        default_country.__init__(self, part, country, polygon_id, _analyser_options, 
    550549                                        download_repo, download_country) 
    551550 
    552551 
    553552class italy_region(default_country_it): 
    554     def __init__(self, part, region, polygon_id=None, proj=23032, analyser_options=None, 
     553    def __init__(self, part, region, polygon_id=None, proj=23032, analyser_options={}, 
    555554                 download_repo=FMACH, download_country=None): 
    556555 
     
    578577italy_region("gfoss_geodata/osm/output_osm_regioni/", "sicilia", 39152) 
    579578italy_region("gfoss_geodata/osm/output_osm_regioni/", "toscana", 41977) 
    580 italy_region("gfoss_geodata/osm/output_osm_regioni/", "trentino-alto-adige", 45757) 
     579italy_region("gfoss_geodata/osm/output_osm_regioni/", "trentino-alto-adige", 45757, analyser_options={"language": ["it","de"]}) 
    581580italy_region("gfoss_geodata/osm/output_osm_regioni/", "umbria", 42004) 
    582581italy_region("gfoss_geodata/osm/output_osm_regioni/", "valle-aosta", 2905554) 
Note: See TracChangeset for help on using the changeset viewer.