Przeglądaj źródła

t.* modules: use grass.separator() and allow multi-character separators

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60631 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 11 lat temu
rodzic
commit
549d10f3bb

+ 1 - 1
temporal/t.list/t.list.py

@@ -91,7 +91,7 @@ def main():
     columns = options["columns"]
     order = options["order"]
     where = options["where"]
-    separator = options["separator"]
+    separator = grass.separator(options["separator"])
     colhead = flags['h']
 
     # Make sure the temporal database exists

+ 1 - 1
temporal/t.rast.list/t.rast.list.py

@@ -93,7 +93,7 @@ def main():
     columns = options["columns"]
     order = options["order"]
     where = options["where"]
-    separator = options["separator"]
+    separator = grass.separator(options["separator"])
     method = options["method"]
     granule = options["granule"]
     header = flags["h"]

+ 1 - 1
temporal/t.rast.univar/t.rast.univar.py

@@ -57,7 +57,7 @@ def main():
     where = options["where"]
     extended = flags["e"]
     colhead = flags["h"]
-    separator = options["separator"]
+    separator = grass.separator(options["separator"])
 
     # Make sure the temporal database exists
     tgis.init()

+ 1 - 1
temporal/t.rast3d.list/t.rast3d.list.py

@@ -84,7 +84,7 @@ def main():
     columns = options["columns"]
     order = options["order"]
     where = options["where"]
-    separator = options["separator"]
+    separator = grass.separator(options["separator"])
     method = options["method"]
     header = flags["h"]
 

+ 1 - 1
temporal/t.rast3d.univar/t.rast3d.univar.py

@@ -57,7 +57,7 @@ def main():
     where = options["where"]
     extended = flags["e"]
     header = flags["h"]
-    separator = options["separator"]
+    separator = grass.separator(options["separator"])
 
     # Make sure the temporal database exists
     tgis.init()

+ 1 - 1
temporal/t.register/t.register.py

@@ -110,7 +110,7 @@ def main():
     maps = options["maps"]
     type = options["type"]
     file = options["file"]
-    separator = options["separator"]
+    separator = grass.separator(options["separator"])
     start = options["start"]
     end = options["end"]
     unit = options["unit"]

+ 1 - 1
temporal/t.sample/t.sample.py

@@ -72,7 +72,7 @@ def main():
     sampler = options["sample"]
     samtype = options["samtype"]
     intype = options["intype"]
-    separator = options["separator"]
+    separator = grass.separator(options["separator"])
     method = options["method"]
     header = flags["h"]
     spatial = flags["s"]

+ 1 - 1
temporal/t.vect.db.select/t.vect.db.select.py

@@ -57,7 +57,7 @@ def main():
     columns = options["columns"]
     tempwhere = options["t_where"]
     layer = options["layer"]
-    separator = options["separator"]
+    separator = grass.separator(options["separator"])
 
     if where == "" or where == " " or where == "\n":
         where = None

+ 1 - 1
temporal/t.vect.list/t.vect.list.py

@@ -85,7 +85,7 @@ def main():
     columns = options["columns"]
     order = options["order"]
     where = options["where"]
-    separator = options["separator"]
+    separator = grass.separator(options["separator"])
     method = options["method"]
     header = flags["h"]
 

+ 1 - 1
temporal/t.vect.univar/t.vect.univar.py

@@ -79,7 +79,7 @@ def main():
     where = options["where"]
     extended = flags["e"]
     header = flags["h"]
-    separator = options["separator"]
+    separator = grass.separator(options["separator"])
 
     # Make sure the temporal database exists
     tgis.init()