Skip to contents

Download boundaries

Download individual country boundaries or global composite boundaries as sf objects. See Get started for product differences and mapping workflows.

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

Inspect available ADM levels, boundary sources, dates and licenses. See Boundary metadata for field definitions and provenance.

gb_get_max_adm_lvl()
Find the highest available ADM level
gb_get_metadata()
Retrieve boundary metadata from geoBoundaries

Manage the cache

Configure, locate or clear the archive cache. See Boundary metadata for cache limitations and reproducible workflows.

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

Package overview, citation and links to related functions and articles.

geobounds geobounds-package
geobounds: Download Administrative Boundary Data from 'geoBoundaries'