I've got a tif I am trying to read in with the assigned projection/datum/etc. These are tifs exported from ArcMap with .tif.xml and .tfw files containing projection info. Is there a way in R to bring in the assigned coord.ref with the .tif
Read in TIF
r<-'example.tif'
r <- raster(r)
r
Output
class : RasterLayer
dimensions : 199, 695, 138305 (nrow, ncol, ncell)
resolution : 50000, 50000 (x, y)
extent : -17367529, 17382471, -4692230, 5257770 (xmin, xmax,ymin, ymax)
coord. ref. : NA
data source : in memory
names : layer
values : 0.268264, 5.886104 (min, max)
I know the projection information is contained in the the associated files: .aux.xml,.tfw, .tif.xml.
I'm looking for the best means to efficiently assign it to the tif?
The names of the tifs and associated metadata files are the convention set and produced by ArcMap export. The directory is shared as well.