reproject: reproject

reprojectR Documentation

reproject

Description

Reproject/transform geodata.

Usage

reproject(x, new_CRS = EPSG_4326, new_coordnames = c("lng", "lat"))

Arguments

x

a ⁠Spatial*⁠ or sf object

new_CRS

integer, CRS, or st_crs object

new_coordnames

character vector

Details

If x is a Spatial object (from the sp package), new_CRS must be a CRS object; otherwise, pass an integer (EPSG code) or st_crs() result.

Value

An object of the same class as x, but reprojected to the new coordinate system, and with new coordnames.


BAAQMD/geotools documentation built on Feb. 29, 2024, 5:44 a.m.