On Sat, 20 Jun 2009, Agustin Lobo wrote:
Hi!
I have a tif file along with a tifw file, the
last one stating a rotation. If I display the
tif file with a gis (i.e., qgis), the image
is correctly displayed with its rotation,
but if I use
r <- raster("SDIM0413_L1.TIF")
image(r)
x <- GDAL.open("SDIM0413_L1.TIF")
displayDataset(x, band=1)
the image is not rotated. Does this imply
that rgdal is ignoring the second and third
entries in the world file (thus assuming 0)?
The underlying assumption is no rotation, so it is discarded. A new
class would be needed for holding the data, and for display the rotated
raster cells would have to be constructed as polygons, not the unrotated
rectangles expected by image() or levelplot().
Roger
r <- readGDAL("SDIM0413_L1.TIF")
SDIM0413_L1.TIF has GDAL driver GTiff
and has 1760 rows and 2640 columns
but, as r is large, cannot use image(r) )
Thanks
Agus