View source: R/utm_projection.R
utm_projection | R Documentation |
Project data layer to the local UTM zone
utm_projection(data = NA, epsg = NA)
data |
a spatial object class |
epsg |
optional EPSG (spatial reference number) for the local UTM zone. If not set, the EPSG will be inferred from the extent of the data layer. |
Since many of the wsep.t2
processing operations require working with
real-world distances in units of meters, it is necessary to ensure that
the spatial data layers are projected to the a local UTM zone. This function
determines the appropriate UTM zone based on the extent of the data layer
and then transforms the data to that projection.
A spatial object class sf
projected to the appropriate UTM zone.
## Not run: library(wsep.t2) data(TsolumStreams) strm <- utm_projection(data = TsolumStreams) sf::st_crs(strm)$epsg ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.