GeofabrikDownloader.get_continent_tables
- GeofabrikDownloader.get_continent_tables(update=False, confirmation_required=True, verbose=False)[source]
Get download catalogues for each continent.
- Parameters:
update (bool) – whether to (check on and) update the prepacked data, defaults to
False
confirmation_required (bool) – whether asking for confirmation to proceed, defaults to
True
verbose (bool | int) – whether to print relevant information in console, defaults to
False
- Returns:
download catalogues for each continent
- Return type:
dict | None
Examples:
>>> from pydriosm.downloader import GeofabrikDownloader >>> gfd = GeofabrikDownloader() >>> # Download information of subregions for each continent >>> continent_tables = gfd.get_continent_tables() >>> type(continent_tables) dict >>> list(continent_tables.keys()) ['Africa', 'Antarctica', 'Asia', 'Australia and Oceania', 'Central America', 'Europe', 'North America', 'South America'] >>> # Information about the data of subregions in Asia >>> asia_table = continent_tables['Asia'] >>> len(asia_table) >= 39 True >>> asia_table.head() subregion ... .osm.bz2 0 Afghanistan ... https://download.geofabrik.de/asia/afghanistan... 1 Armenia ... https://download.geofabrik.de/asia/armenia-lat... 2 Azerbaijan ... https://download.geofabrik.de/asia/azerbaijan-... 3 Bangladesh ... https://download.geofabrik.de/asia/bangladesh-... 4 Bhutan ... https://download.geofabrik.de/asia/bhutan-late... [5 rows x 6 columns] >>> asia_table.columns.to_list() ['subregion', 'subregion-url', '.osm.pbf', '.osm.pbf-size', '.shp.zip', '.osm.bz2']