spat_bb: Create sf object from numeric extent.

Description Usage Arguments

View source: R/utils.R

Description

Creates a sf object from numeric extent vector and applies a default WGS84 (EPSG:4326) coordinate reference system.

Usage

1
2
spat_bb(b_ext, buff_dist = 0,
  proj4s = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs")

Arguments

b_ext

Numeric extent [xmin, xmax, ymin, ymax]

buff_dist

Distance in decimal degrees to expand the bounding box by in all directions.

proj4s

Either the proj4 string or EPSG number of the native projection of the bounds


JGCRI/gcammaptools documentation built on May 4, 2018, 8 a.m.