November 2018
Beginner to intermediate
354 pages
6h 59m
English
We can change the projection system of a raster file using projectRaster() as follows:
# Change projection of band4 image from UTM to long latband4_ll = projectRaster(band4, crs = '+proj=longlat')
We can reproject from longitude and latitude to UTM by using the projectRaster() function in the following way:
x = " +proj=utm +zone=48 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0"band4_utm = projectRaster(band4_ll, crs=x)
Now, we'll get the raster back in UTM projection.
Read now
Unlock full access