lonlat_to_merc: Transform between spherical Mercator and longitude/latitude

Description Usage Arguments Value Examples

Description

Transform between spherical Mercator and longitude/latitude

Usage

1
2
3

Arguments

ll

matrix of longitude / latitude

xy

matrix of x / y Mercator

Value

matrix of coordinates transformed forward or inverse

Examples

 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)

slippymath documentation built on June 28, 2019, 5:04 p.m.