Description Usage Arguments Details Author(s) See Also Examples
Gets the proj4 string from a object of type "Spatial" or "Raster".
1 2 3 4 |
obj |
object of type |
For more details about the PROJ.4 parameters refer to the https://proj4.org.
Tomislav Hengl and Pierre Roudier
sp::CRS
, raster::raster
, check_projection
1 2 3 4 5 6 7 8 9 10 11 | data(eberg_grid)
library(sp)
coordinates(eberg_grid) <- ~x+y
gridded(eberg_grid) <- TRUE
library(rgdal)
proj4string(eberg_grid) <- CRS("+init=epsg:31467")
library(raster)
r <- raster(eberg_grid[1])
getCRS(r)
r.ll <- reproject(r)
getCRS(r.ll)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.