UTM_Convertor: Convert UTM to other coordinate reference system.

Description Usage Arguments Value Author(s) Examples

View source: R/UTM_Convertor.R

Description

Converts UTM coordinates to the other coordinate reference system.

Usage

1
2
3
UTM_Convertor(point_ID, zone, northing, easting,
  CRS_To = "+proj=aea +lat_1=50 +lat_2=58.5 +lat_0=45 +lon_0=-126 +x_0=1000000\n                           +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
  class = "sp")

Arguments

point_ID

character, Data point ID.

zone

integer, UTM zone.

northing

integer, UTM northing.

easting

integer, UTM easting.

CRS_To

character, Defines the spatial coordination reference that you wish to transform. Default is BC Albers reference system.

class

character, Define the class of returned objective. Currently this function supports either table or sp class. Default is table.

Value

Reprojected objective.

Author(s)

Yong Luo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
## for Prince Rupert, Fort Nelson, Prince George, Victoria, Kelowna
citylocs <- UTM_Convertor(point_ID = c("Prince Rupert", "Prince George",
                                       "Victoria", "Kelowna"),
                          zone = c(9, 10, 10, 11),
                          northing = c(6019079.41, 5974323.27, 5361626.96, 5528467.98),
                          easting = c(415075.83, 516441.65, 475594.70, 321996.76),
                          class = "sp")
bcbdry <- bcmaps::bc_bound(class = "sp")
plot(bcbdry)
plot(citylocs, col = "red", size = 10, add = TRUE)

## End(Not run)

bcgov/BCForestGroundSample documentation built on May 25, 2019, 3:21 p.m.