Skip to contents

Boundaries

Download individual country files or 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 a given administrative level
gb_get_world()
Get global composite files (CGAZ) from geoBoundaries

Metadata

Inspect available administrative levels, boundary metadata and source details.

gb_get_max_adm_lvl()
Get the highest administrative level available for a given country
gb_get_metadata()
Get metadata for individual country files 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'