get_region_boundary: Get region boundary for any specified region

View source: R/01-core-utilities.R

get_region_boundaryR Documentation

Get region boundary for any specified region

Description

Universal function to get region boundaries for any geographic area including US states, countries, CONUS, counties, or custom bounding boxes with comprehensive error handling.

Usage

get_region_boundary(region_def, verbose = FALSE)

Arguments

region_def

Region definition in various formats:

  • Character: "Ohio", "Nigeria", "CONUS"

  • Character with colon: "Ohio:Franklin" (state:county)

  • Numeric vector: c(xmin, ymin, xmax, ymax) bounding box

  • sf object: existing spatial object

verbose

Print progress messages

Value

sf object with boundary geometry

Examples


# US State with error handling
ohio_boundary <- get_region_boundary("Ohio")

# Custom bounding box with validation
custom_area <- get_region_boundary(c(-84.5, 39.0, -82.0, 41.0))



geospatialsuite documentation built on Nov. 6, 2025, 1:06 a.m.