Helper function used to retrieve the bounding box of a specified spatial file
recognized by sf
or raster
: the function reads the extent using sf::st_bbox()
Arguments
- file_path
character
path of a spatial file.- crs_out
(
crs
|character
) crs of the desired output projection, or string coercible to it usingsf::st_crs()
(e.g., WKT or numeric EPSG code)