project4: Transform spatial coordinates

Description Usage Arguments Value Author(s) Examples

View source: R/project4.R

Description

R bridge to PROJ.4 library

Usage

1
project4(xy, from, to)

Arguments

xy

matrix with two columns

from

character. PROJ.4 formatted coordinate reference system description

to

character. PROJ.4 formatted coordinate reference system description

Value

matrix

Author(s)

Robert J Hijmans

Examples

1
2
3
4
5
6
7
xy <- cbind(c(15,-16), c(6, 25))
pfrom <- "+proj=longlat +ellps=clrk66"
pto <- "+proj=merc +ellps=clrk66 +lat_ts=33"
p <- project4(xy, pfrom, pto)
p

project4(p, pto, pfrom)

Rproj4 documentation built on May 2, 2019, 5:01 p.m.