osm_flex.config
This file is part of OSM-flex. Copyright (C) 2023 OSM-flex contributors listed in AUTHORS. OSM-flex is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3. OSM-flex is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. —– constants and configurations
Module Contents
- osm_flex.config.PLANET_URL = 'https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf'[source]
dictionary for the generation of the correct download api-address at geofabrik.de, relating ISO3-country codes to the region & written-out name. Adapted from the GitHub repo osm_clipper (https://github.com/ElcoK/osm_clipper) Used by download.get_country_geofabrik().
Note: A few small countries will be downloaded as a multi-country file, as indicated in the comments.
Note: “special” ISO-3 codes - Canary Islands (IC), Asian part of Russia (RUS-A), European part of Russia (RUS-E)
- osm_flex.config.DICT_GEOFABRIK[source]
nested dictionary that contains collections of relevant columns (osm_keys) and key - value pairs (osm_query) to extract critical infrastructure data from an osm.pbf file, via the function OSM_FileQuery().retrieve_cis()
- Currently implemented for:
educational facilities,
electric power,
food supply,
healthcare facilities,
natural gas infrastructure,
oil infrastructure,
road,
rail,
telecommunications,
water supply,
wastewater.
Note: If modified, make sure that key exists in osm.config file, under the respective geometry/-ies.