[GRASS-SVN] r59306 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 24 06:47:21 PDT 2014
Author: lucadelu
Date: 2014-03-24 06:47:21 -0700 (Mon, 24 Mar 2014)
New Revision: 59306
Modified:
grass/trunk/lib/python/script/core.py
Log:
python core: fix function to check if location is latlong
Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py 2014-03-24 11:43:14 UTC (rev 59305)
+++ grass/trunk/lib/python/script/core.py 2014-03-24 13:47:21 UTC (rev 59306)
@@ -978,7 +978,7 @@
"""
s = read_command("g.region", flags='p')
kv = parse_key_val(s, ':')
- if kv['projection'].split(' ')[1] == '3':
+ if kv['projection'].split(' ')[0] == '3':
return True
else:
return False
More information about the grass-commit
mailing list