[GRASS-SVN] r58045 - grass/trunk/gui/wxpython/iscatt

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 18 06:10:55 PDT 2013


Author: turek
Date: 2013-10-18 06:10:54 -0700 (Fri, 18 Oct 2013)
New Revision: 58045

Modified:
   grass/trunk/gui/wxpython/iscatt/iscatt_core.py
Log:
wx.iscatt: take only integer rasters

Modified: grass/trunk/gui/wxpython/iscatt/iscatt_core.py
===================================================================
--- grass/trunk/gui/wxpython/iscatt/iscatt_core.py	2013-10-18 12:49:58 UTC (rev 58044)
+++ grass/trunk/gui/wxpython/iscatt/iscatt_core.py	2013-10-18 13:10:54 UTC (rev 58045)
@@ -386,7 +386,7 @@
         #TODO show some warning
         for b in self.bands[:]:
             i = self._getRasterInfo(b)
-            if i["datatype"] != "CELL":
+            if not i:
                 self.bands.remove(b)
                 continue
             self.bands_info[b] = i
@@ -414,6 +414,8 @@
                 continue
             k, v = b.split("=")
             if k == "datatype":
+                if v != "CELL":
+                    return None
                 pass
             elif k in ['rows', 'cols', 'cells', 'min', 'max']:
                 v = int(v)



More information about the grass-commit mailing list