
Package index
Download boundaries
Use gb_get() for individual country boundaries or gb_get_world() for global composite boundaries. The ADM wrappers select a single administrative level. Downloaded boundaries are returned as sf objects.
-
gb_get() - Download individual country boundaries from geoBoundaries
-
gb_get_adm0()gb_get_adm1()gb_get_adm2()gb_get_adm3()gb_get_adm4()gb_get_adm5() - Download country boundaries for one ADM level
-
gb_get_world() - Download global composite boundaries from geoBoundaries
Inspect metadata and availability
Find each country’s highest available ADM level with gb_get_max_adm_lvl(). Inspect boundary sources, dates and licensing with gb_get_metadata() before downloading or sharing data.
-
gb_get_max_adm_lvl() - Find the highest available ADM level
-
gb_get_metadata() - Retrieve boundary metadata from geoBoundaries
Manage the cache
Set a reusable cache directory with gb_set_cache_dir(), locate it with gb_detect_cache_dir() and remove cached archives or saved configuration with gb_clear_cache().
-
gb_clear_cache() - Clear the geobounds cache directory
-
gb_detect_cache_dir() - Detect the geobounds cache directory
-
gb_set_cache_dir() - Set the geobounds cache directory
About the package
View package-level documentation, citation information and project links for geobounds.
-
geoboundsgeobounds-package - geobounds: Download Administrative Boundary Data from 'geoBoundaries'