utm_projection: UTM Projection

View source: R/utm_projection.R

utm_projectionR Documentation

UTM Projection

Description

Project data layer to the local UTM zone

Usage

utm_projection(data = NA, epsg = NA)

Arguments

data

a spatial object class sf.

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.

Details

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.

Value

A spatial object class sf projected to the appropriate UTM zone.

Examples

## Not run: 
library(wsep.t2)
data(TsolumStreams)
strm <- utm_projection(data = TsolumStreams)
sf::st_crs(strm)$epsg

## End(Not run)



essatech/wsep.t2 documentation built on Sept. 3, 2022, 5:56 a.m.