I am trying to set the CRS of a raster file with the following code:
library(raster)
r<-raster(xmn=0,xmx=10,ymn=0,ymx=10)
crs(r)<-CRS("+init=epsg:3035")
The warning message is:
Warning message:
In showSRID(uprojargs, format = "PROJ", multiline = "NO") :
Discarded datum European_Terrestrial_Reference_System_1989 in CRS definition
How can I succesfully change the CRS to EPSG 3035?
If I set the CRS to WGS84 I don't get any warning.
+init=epsg:3035 +proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
. System Info: LinuxMint19.3 + R3.6.3 + raster3.1-5 + sp1.4-2 + rgdal1.5-10