transformBBox: Transform (or assign) a bounding box's coordinate reference...

View source: R/transformBBox.R

transformBBoxR Documentation

Transform (or assign) a bounding box's coordinate reference system

Description

Function to transform (or assign) a bounding box's coordinate reference system.

Usage

transformBBox(bbx, crs)

Arguments

bbx
  • object convertible to a sf::bbox

crs
  • the output coordinate reference system (see @details)

Details

crs should be an object convertible to a sf::crs by get_crs. If the crs of the bbox is NA, then crs is assigned to the bbox, but no coordinate transformation takes place.

Value

the transformed bounding box in the specifed crs


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