cropFeaturesToBBox: Crop features (a 'sf::sf' or 'sf::sfc' object) to a bounding...

View source: R/cropFeaturesToBBox.R

cropFeaturesToBBoxR Documentation

Crop features (a sf::sf or sf::sfc object) to a bounding box

Description

Function to crop features (a sf::sf or sf::sfc object) to a bounding box.

Usage

cropFeaturesToBBox(obj, bbx)

Arguments

obj
  • object of class "sf" or "sfc"

bbx
  • object that can be converted to a sf:bbox (see details)

Details

bbx can be any object that can be converted to a sf::bbox using getBBox.

Value

  • object of same type as obj, but cropped to the bbox limits

Note

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.


wStockhausen/wtsGIS documentation built on Aug. 23, 2023, 2:31 a.m.