project: Project points

View source: R/project.R

projectR Documentation

Project points

Description

Project points

Usage

project(pts, from = NULL, to)

Arguments

pts

A vector or list of points.

from,to

The from and to projection. A character string. If from is left NULL, then it is assumed to be projected from WGS84.

Details

New lines are stripped out of projection strings to facilitate collapsing them onto multiple lines.

Examples

pts <- c(-71,41)
to = '"+proj=gnom +lat_0=90 +lon_0=0 +x_0=6300000 +y_0=6300000 +ellps=WGS84
   +datum=WGS84 +units=m +no_defs"'
project(pts, to = to)

ropensci/proj documentation built on May 18, 2022, 5:41 p.m.