ps_create_bounds: Create bounds

View source: R/basemap.R

ps_create_boundsR Documentation

Create bounds

Description

Create a sfc polygon rectangle as padded bbox of sf object.

Usage

ps_create_bounds(x, pad)

Arguments

x

A sf object. If long/lat, object is temporarily transformed to UTM to add pad distance.

pad

A numeric vector indicating amount in metres to pad bounds. If vector of length 1, amount is added to all sides; if vector of length 4 amount is added to left, top, right and bottom, respectively.

Value

sfc polygon.


poissonconsulting/poisspatial documentation built on Nov. 9, 2023, 10:09 a.m.