Browse Source

Fixed bug in sample by granularity

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49150 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 13 years ago
parent
commit
23e9a2917e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/python/temporal/abstract_space_time_dataset.py

+ 2 - 2
lib/python/temporal/abstract_space_time_dataset.py

@@ -572,7 +572,7 @@ class abstract_space_time_dataset(abstract_dataset):
             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 @@ class abstract_space_time_dataset(abstract_dataset):
 
                     maplist.append(copy.copy(map))
 
-            obj_list.append(copy.copy(maplist))
+            	obj_list.append(copy.copy(maplist))
 
             start = next