projectUTM {RWmisc}R Documentation

Project to UTM

Description

Project an object in latitude/longitude to UTM.

Usage

projectUTM(x)

## S3 method for class 'sf'
projectUTM(x)

## S3 method for class 'sfc'
projectUTM(x)

## S3 method for class 'SpatialPointsDataFrame'
projectUTM(x)

## S3 method for class 'SpatialPoints'
projectUTM(x)

## S3 method for class 'SpatialPolygonsDataFrame'
projectUTM(x)

## S3 method for class 'SpatialPolygons'
projectUTM(x)

Arguments

x

An sf or sp object in latitude-longitude CRS.

Value

An sf or sp object projected to UTM CRS.

Examples

library(sf)
nc <- st_read(system.file("shape/nc.shp", package="sf"))
st_crs(projectUTM(nc))

[Package RWmisc version 0.1.2 Index]