Displaying 1 result from an estimated 1 matches for "660x420".
Did you mean:
0x420
2008 Aug 10
0
possible problem with rgdal
...a)
[1] 660
> dummy = getRasterData(a)
> nrow(dummy)
[1] 660
> ncol(dummy)
[1] 420
> test = matrix(0, nrow=420, ncol=660)
> putRasterData(a,test)
Error in putRasterData(a, test) :
GDAL Error 5: Access window out of range in RasterIO(). Requested
(0,0) of size 420x660 on raster of 660x420.
Also, it appears that the lower left coordinates given by calling GDALinfo
are actually the upper left coordinates.
from command line GDAL:
sardinha$ gdalinfo dummy.tif
Driver: GTiff/GeoTIFF
Files: dummy.tif
Size is 660, 420
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_19...