[Raster-commits] r301 - pkg/raster/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Feb 26 10:52:21 CET 2009


Author: rhijmans
Date: 2009-02-26 10:52:20 +0100 (Thu, 26 Feb 2009)
New Revision: 301

Modified:
   pkg/raster/R/click.R
Log:


Modified: pkg/raster/R/click.R
===================================================================
--- pkg/raster/R/click.R	2009-02-25 13:42:06 UTC (rev 300)
+++ pkg/raster/R/click.R	2009-02-26 09:52:20 UTC (rev 301)
@@ -26,11 +26,11 @@
 		return(cbind(xyCoords))
 	}
 	if (dataContent(object) != 'all') {
-		if (dataSource(object) != 'disk') {
-			stop('no data associated with this RasterLayer object')
-		} else {
-			value <- xyValues(object, xyCoords)
-		}	
+		#if (dataSource(object) != 'disk') {
+		#	stop('no data associated with this RasterLayer object')
+		#} else {
+		value <- xyValues(object, xyCoords)
+		#}	
 	} else {
 		cell <- cellFromXY(object, xyCoords)
 		if (class(object) == 'RasterStack') {



More information about the Raster-commits mailing list