Learn R Programming

RWmisc (version 0.1.2)

projectUTM: Project to UTM

Description

Project an object in latitude/longitude to UTM.

Usage

projectUTM(x)

# S3 method for sf projectUTM(x)

# S3 method for sfc projectUTM(x)

# S3 method for SpatialPointsDataFrame projectUTM(x)

# S3 method for SpatialPoints projectUTM(x)

# S3 method for SpatialPolygonsDataFrame projectUTM(x)

# S3 method for 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

Run this code
# NOT RUN {
library(sf)
nc <- st_read(system.file("shape/nc.shp", package="sf"))
st_crs(projectUTM(nc))
# }

Run the code above in your browser using DataLab