Module datasets

Source

Functions§

lazy_download_map_data
Downloads map data lazily if it doesn’t exist in the specified directory.
load_countries
Loads a HashMap from ISO_A2 country names to their borders from a GeoJSON file.
load_labeled_collection_polygons
Loads labeled polygons from a GeoJSON file and returns them as a HashMap.
load_or_compute_country_label_tree
Loads or computes a labeled country partition tree. If a cached version of the tree exists, it is loaded; otherwise, the tree is computed from scratch and saved.
load_or_compute_label_tree
Loads or computes a labeled partition tree from the given GeoJSON file and property label. If a cached version of the tree exists, it is loaded; otherwise, the tree is computed from scratch and saved.
load_or_compute_province_label_tree
Loads or computes a labeled province partition tree. If a cached version of the tree exists, it is loaded; otherwise, the tree is computed from scratch and saved.
load_provinces
Loads a HashMap from iso_3166_2 province names to their borders from a GeoJSON file.