[GRASS-SVN] r65226 - grass/trunk/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 12 11:13:47 PDT 2015


Author: martinl
Date: 2015-05-12 11:13:47 -0700 (Tue, 12 May 2015)
New Revision: 65226

Modified:
   grass/trunk/lib/python/script/core.py
Log:
pythonlib: fix region() - support 'projection' and 'zone'


Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py	2015-05-12 18:12:22 UTC (rev 65225)
+++ grass/trunk/lib/python/script/core.py	2015-05-12 18:13:47 UTC (rev 65226)
@@ -944,7 +944,7 @@
 
     s = read_command("g.region", flags=flgs)
     reg = parse_key_val(s, val_type=float)
-    for k in ['rows',  'cols',  'cells',
+    for k in ['projection', 'zone', 'rows',  'cols',  'cells',
               'rows3', 'cols3', 'cells3', 'depths']:
         if k not in reg:
             continue



More information about the grass-commit mailing list