[GRASS-SVN] r59386 - grass/branches/develbranch_6/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 26 16:06:31 PDT 2014


Author: hamish
Date: 2014-03-26 16:06:30 -0700 (Wed, 26 Mar 2014)
New Revision: 59386

Modified:
   grass/branches/develbranch_6/lib/python/core.py
Log:
only read region, don't alter WIND file (#2230)

Modified: grass/branches/develbranch_6/lib/python/core.py
===================================================================
--- grass/branches/develbranch_6/lib/python/core.py	2014-03-26 22:38:18 UTC (rev 59385)
+++ grass/branches/develbranch_6/lib/python/core.py	2014-03-26 23:06:30 UTC (rev 59386)
@@ -560,11 +560,11 @@
 
 def locn_is_latlong():
     """!Tests if location is lat/long. Value is obtained
-    by checking the "g.region -p" projection code.
+    by checking the "g.region -pu" projection code.
 
     @return True for a lat/long region, False otherwise
     """
-    s = read_command("g.region", flags='p')
+    s = read_command("g.region", flags='pu')
     kv = parse_key_val(s, ':')
     if kv['projection'].split(' ')[1] == '3':
         return True
@@ -574,7 +574,7 @@
 # interface to g.region
 
 def region(region3d = False):
-    """!Returns the output from running "g.region -g", as a
+    """!Returns the output from running "g.region -gu", as a
     dictionary. Example:
 
     \param region3d True to get 3D region
@@ -589,7 +589,7 @@
 
     @return dictionary of region values
     """
-    flgs = 'g'
+    flgs = 'gu'
     if region3d:
         flgs += '3'
     
@@ -645,7 +645,7 @@
     if not kwargs: # return current region
         return grass_region
     
-    # read other values from `g.region -g`
+    # read other values from `g.region -gu`
     flgs = 'ug'
     if region3d:
         flgs += '3'



More information about the grass-commit mailing list