浏览代码

temporal modules: Fixed usage of the 'z' flag; inform user then -z flag is switched on (much slower) (trunk, https://trac.osgeo.org/grass/changeset/66319 + https://trac.osgeo.org/grass/changeset/66341)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@66342 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 9 年之前
父节点
当前提交
fc35bd77cf
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      temporal/t.rast.series/t.rast.series.py

+ 4 - 1
temporal/t.rast.series/t.rast.series.py

@@ -99,7 +99,10 @@ def main():
 
         file.close()
 
-        flag = "z"
+        flag = ""
+        if len(rows) > 1000:
+            grass.warning(_("Processing over 1000 maps: activating -z flag of r.series which slows down processing"))
+            flag += "z"
         if nulls:
             flag += "n"