Browse Source

r.in.srtm: Print an error not fail in XY location

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70819 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 8 years ago
parent
commit
c398e9fb9d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/r.in.srtm/r.in.srtm.py

+ 1 - 1
scripts/r.in.srtm/r.in.srtm.py

@@ -139,7 +139,7 @@ def main():
     # 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: