Extracts tree
OpenStreetMap extracts tree.
This module contains function for displaying available extracts in the tree form.
get_available_extracts_as_rich_tree(
source_enum,
osm_extract_source_index_functions,
use_full_names=False,
)
¶
get_available_extracts_as_rich_tree(
source_enum,
osm_extract_source_index_functions,
use_full_names=False,
)
Transform available OSM extracts into a tree from the Rich library.
Source code in quackosm/osm_extracts/extracts_tree.py
¶
Iterate OSM extracts recursively and create tree branches.
PARAMETER | DESCRIPTION |
---|---|
parent_id |
Current id of the extract used to find children.
TYPE:
|
tree |
Tree object from Rich library.
TYPE:
|
index |
List of available OSM extracts.
TYPE:
|
use_full_names |
Whether to display full name, or short name of the extract. Full name contains all parents of the extract.
TYPE:
|
depth |
Depth of the recursion. Defaults to 0.
TYPE:
|
Source code in quackosm/osm_extracts/extracts_tree.py
¶
Change big number into a human readable format.