Skip to contents

Boundary data

Download individual country files and global composite files as sf objects.

gb_get()
Get individual country files from geoBoundaries
gb_get_adm0() gb_get_adm1() gb_get_adm2() gb_get_adm3() gb_get_adm4() gb_get_adm5()
Get individual country files for an ADM level
gb_get_world()
Get global composite files from geoBoundaries

Availability and metadata

Inspect available ADM levels, boundary metadata and source information.

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

Cache management

Configure, inspect and clear the local cache used for downloaded boundary files.

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

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