[GRASS-SVN] r49150 - grass/trunk/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 8 17:33:51 EST 2011


Author: huhabla
Date: 2011-11-08 14:33:51 -0800 (Tue, 08 Nov 2011)
New Revision: 49150

Modified:
   grass/trunk/lib/python/temporal/abstract_space_time_dataset.py
Log:
Fixed bug in sample by granularity 


Modified: grass/trunk/lib/python/temporal/abstract_space_time_dataset.py
===================================================================
--- grass/trunk/lib/python/temporal/abstract_space_time_dataset.py	2011-11-08 21:56:45 UTC (rev 49149)
+++ grass/trunk/lib/python/temporal/abstract_space_time_dataset.py	2011-11-08 22:33:51 UTC (rev 49150)
@@ -572,7 +572,7 @@
             else:
                 next = start + gran
 
-            where += "(start_time >= '%s' and end_time <= '%s') OR " % (start, end)
+            where = "(start_time <= '%s' and end_time >= '%s')" % (start, next)
 
             rows = self.get_registered_maps("id", where, "start_time", dbif)
 
@@ -592,7 +592,7 @@
 
                     maplist.append(copy.copy(map))
 
-            obj_list.append(copy.copy(maplist))
+            	obj_list.append(copy.copy(maplist))
 
             start = next
 



More information about the grass-commit mailing list