Skip to contents

Download boundaries

Download individual country boundaries and global composite boundaries 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

Inspect boundary metadata, available ADM levels and licensing.

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

Manage the cache

Configure, inspect and clear cached boundary archives.

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

Learn about geobounds

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