Description Usage Arguments Value Examples
Transform coordinates
1 | proj_trans(pj, coord, direction = "fwd", verbose = FALSE)
|
pj |
A PROJ object or definition coerced using |
coord |
A matrix with four columns (x, y, z, t) |
direction |
One of "fwd", "ident", or "inv". |
verbose |
Use |
A transformed value of coord
1 2 3 | p <- proj_create_crs_to_crs("OGC:CRS84", "EPSG:3857")
x <- proj_coord(-64, 45)
proj_trans(p, x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.