lonlat_to_merc {slippymath} | R Documentation |
Transform between spherical Mercator and longitude/latitude
Description
Transform between spherical Mercator and longitude/latitude
Usage
lonlat_to_merc(ll)
merc_to_lonlat(xy)
Arguments
ll |
matrix of longitude / latitude |
xy |
matrix of x / y Mercator |
Value
matrix of coordinates transformed forward or inverse
Examples
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)
[Package slippymath version 0.3.1 Index]