Description Usage Arguments Value Author(s) Examples
View source: R/UTM_Convertor.R
Converts UTM coordinates to the other coordinate reference system.
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")
|
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 |
Reprojected objective.
Yong Luo
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.