View source: R/project_coordinates.R
project_coordinates | R Documentation |
project_coordinates
converts from Latitude-Longitude to Universal Transverse Mercator projections for a given location
project_coordinates(
X,
Y,
projargs = NA,
origargs = "+proj=longlat +datum=WGS84",
zone = NA,
flip_around_dateline = FALSE,
silent = FALSE
)
X |
vector of horizontal-coordinates (e.g., longitude by default) |
Y |
vector of vertical-coordinates (e.g., latitude by default) |
projargs |
A character string of projection arguments; the arguments must be entered exactly as in the PROJ.4 documentation; if the projection is unknown, use |
zone |
DEPRECATED INPUT; UTM zone (integer between 1 and 60) or alphanumeric CRS code used by package rgdal to convert latitude-longitude coordinates to projection in kilometers; |
flip_around_dateline |
DEPRECATED INPUT; boolean specifying whether to flip Lat-Lon locations around the dateline, and then retransform back (only useful if Lat-Lon straddle the dateline) |
A data frame with the following columns
The horizonal coordinates after projection (e.g., Eastings in UTM kilometers by default)
The vertical coordinates after projection (e.g., Northings in UTM kilometers by default)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.