[Raster-commits] r269 - pkg/raster/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Feb 10 15:58:58 CET 2009
Author: rhijmans
Date: 2009-02-10 15:58:58 +0100 (Tue, 10 Feb 2009)
New Revision: 269
Modified:
pkg/raster/R/cover.R
pkg/raster/R/overlay.R
Log:
Modified: pkg/raster/R/cover.R
===================================================================
--- pkg/raster/R/cover.R 2009-02-10 13:49:51 UTC (rev 268)
+++ pkg/raster/R/cover.R 2009-02-10 14:58:58 UTC (rev 269)
@@ -18,7 +18,7 @@
rm(y)
outRaster <- setValues(outRaster, values(x))
if (filename(outRaster) != "") {
- writeRaster(outRaster, overwrite=overwrite)
+ outraster <- writeRaster(outRaster, overwrite=overwrite)
}
} else {
if (dataContent(x) == 'nodata' & dataSource(x) == 'ram' ) {
Modified: pkg/raster/R/overlay.R
===================================================================
--- pkg/raster/R/overlay.R 2009-02-10 13:49:51 UTC (rev 268)
+++ pkg/raster/R/overlay.R 2009-02-10 14:58:58 UTC (rev 269)
@@ -46,7 +46,7 @@
outraster <- setValues(outraster, vals)
if (filename(outraster) != "") {
- writeRaster(outraster, overwrite=overwrite)
+ outraster <- writeRaster(outraster, overwrite=overwrite)
}
} else {
More information about the Raster-commits
mailing list