[GRASS-SVN] r72022 - grass/branches/releasebranch_7_2/scripts/r.in.srtm
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 2 13:48:01 PST 2018
Author: neteler
Date: 2018-01-02 13:48:01 -0800 (Tue, 02 Jan 2018)
New Revision: 72022
Modified:
grass/branches/releasebranch_7_2/scripts/r.in.srtm/r.in.srtm.py
Log:
r.in.srtm: Print an error not fail in XY location (trunk, r70819)
Modified: grass/branches/releasebranch_7_2/scripts/r.in.srtm/r.in.srtm.py
===================================================================
--- grass/branches/releasebranch_7_2/scripts/r.in.srtm/r.in.srtm.py 2018-01-01 22:36:27 UTC (rev 72021)
+++ grass/branches/releasebranch_7_2/scripts/r.in.srtm/r.in.srtm.py 2018-01-02 21:48:01 UTC (rev 72022)
@@ -135,7 +135,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