Przeglądaj źródła

temporal framework: Fixed stds name replacement to avoid conflicts with basenames

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66308 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 9 lat temu
rodzic
commit
7a55e57936
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      lib/python/temporal/extract.py

+ 3 - 2
lib/python/temporal/extract.py

@@ -91,11 +91,12 @@ def extract_dataset(input, output, type, where, expression, base, nprocs=1,
 
                 # We need to modify the r(3).mapcalc expression
                 if type != "vector":
-                    expr = "%s = %s" % (map_name, expression)
-
+                    expr = expression
                     expr = expr.replace(sp.base.get_map_id(), row["id"])
                     expr = expr.replace(sp.base.get_name(), row["id"])
 
+                    expr = "%s = %s" % (map_name, expr)
+
                     # We need to build the id
                     map_id = AbstractMapDataset.build_id(map_name, mapset)
                 else: