R/30_gadm_getBbox.R

Defines functions gadm_getBbox.gadm_sp gadm_getBbox.gadm_sf

# gadm_getBB.gadm_sf ------------------------------------------------------
# =========================================================================
gadm_getBbox.gadm_sf <- function(x) {
  sf::st_bbox(x$sf)
}

# gadm_getBbox.gadm_sp ------------------------------------------------------
# =========================================================================
gadm_getBbox.gadm_sp <- function(x) {
  bbox(x$spdf)
}

Try the GADMTools package in your browser

Any scripts or data that you put into this service are public.

GADMTools documentation built on Aug. 5, 2021, 1:06 a.m.