View source: R/cropFeaturesToBBox.R
cropFeaturesToBBox | R Documentation |
sf::sf
or sf::sfc
object) to a bounding boxFunction to crop features (a sf::sf
or sf::sfc
object) to a bounding box.
cropFeaturesToBBox(obj, bbx)
obj |
|
bbx |
|
bbx
can be any object that can be converted to a sf::bbox
using getBBox
.
object of same type as obj
, but cropped to the bbox limits
The bounding box must be in the same coordinate system as obj
. If the
coordinate reference system for bbx
is undefined, it is assumed to be the same as
that for obj
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.