[GRASS-SVN] r70819 - grass/trunk/scripts/r.in.srtm
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 1 03:45:21 PDT 2017
Author: marisn
Date: 2017-04-01 03:45:20 -0700 (Sat, 01 Apr 2017)
New Revision: 70819
Modified:
grass/trunk/scripts/r.in.srtm/r.in.srtm.py
Log:
r.in.srtm: Print an error not fail in XY location
Modified: grass/trunk/scripts/r.in.srtm/r.in.srtm.py
===================================================================
--- grass/trunk/scripts/r.in.srtm/r.in.srtm.py 2017-04-01 10:28:45 UTC (rev 70818)
+++ grass/trunk/scripts/r.in.srtm/r.in.srtm.py 2017-04-01 10:45:20 UTC (rev 70819)
@@ -139,7 +139,7 @@
# are we in LatLong location?
s = grass.read_command("g.proj", flags='j')
kv = grass.parse_key_val(s)
- if kv['+proj'] != 'longlat':
+ if not '+proj' in kv.keys() or kv['+proj'] != 'longlat':
grass.fatal(_("This module only operates in LatLong locations"))
# use these from now on:
More information about the grass-commit
mailing list