Description Usage Arguments Value Examples
Transform between spherical Mercator and longitude/latitude
1 2 3 | lonlat_to_merc(ll)
merc_to_lonlat(xy)
|
ll |
matrix of longitude / latitude |
xy |
matrix of x / y Mercator |
matrix of coordinates transformed forward or inverse
1 2 3 4 5 6 7 8 9 10 11 | uluru_lonlat <- matrix(c(131.0325162,
-25.3448562),
nrow = 1)
lonlat_to_merc(uluru_lonlat)
uluru_merc <- matrix(c(14586472.958481,
-2918162.223463),
nrow = 1)
merc_to_lonlat(uluru_merc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.