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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jan 21 02:04:51 CET 2009


Author: rhijmans
Date: 2009-01-21 02:04:50 +0100 (Wed, 21 Jan 2009)
New Revision: 165

Modified:
   pkg/raster/R/properties.R
Log:
nlayers for BasicRaster

Modified: pkg/raster/R/properties.R
===================================================================
--- pkg/raster/R/properties.R	2009-01-20 09:12:57 UTC (rev 164)
+++ pkg/raster/R/properties.R	2009-01-21 01:04:50 UTC (rev 165)
@@ -89,6 +89,12 @@
 		standardGeneric("nlayers"))
 }	
 
+setMethod('nlayers', signature(object='BasicRaster'), 
+	function(object){
+		return(0) 
+    }
+)
+
 setMethod('nlayers', signature(object='Raster'), 
 	function(object){
 		return(1) 



More information about the Raster-commits mailing list