Skip to contents

Boundaries

These functions return sf objects with political boundaries.

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 country files from geoBoundaries for a given administrative level
gb_get_cgaz()
Get global composites data (CGAZ) from geoBoundaries

Metadata

These functions return metadata in tibble format.

gb_get_max_adm_lvl()
Get the highest administrative level available for a given country
gb_get_metadata()
Get metadata of individual country files from geoBoundaries

Cache management

gb_clear_cache()
Clear your geobounds cache directory
gb_detect_cache_dir()
Detect cache directory for geobounds
gb_set_cache_dir()
Set your geobounds cache directory

About the package

geobounds geobounds-package
geobounds: Download Map Data from 'geoBoundaries'