[GRASS-SVN] r73102 - grass-addons/grass7/imagery/i.sentinel/i.sentinel.download

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 15 00:43:42 PDT 2018


Author: martinl
Date: 2018-08-15 00:43:42 -0700 (Wed, 15 Aug 2018)
New Revision: 73102

Modified:
   grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py
Log:
i.sentinel.download: xy location not supported

Modified: grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py
===================================================================
--- grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py	2018-08-15 02:56:06 UTC (rev 73101)
+++ grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py	2018-08-15 07:43:42 UTC (rev 73102)
@@ -128,6 +128,8 @@
     # are we in LatLong location?
     s = gs.read_command("g.proj", flags='j')
     kv = gs.parse_key_val(s)
+    if '+proj' not in kv:
+        gs.fatal('Unable to get AOI bounding box: unprojected location not supported')
     if kv['+proj'] != 'longlat':
         info = gs.parse_command('g.region', flags='uplg', **args)
         return 'POLYGON(({nw_lon} {nw_lat}, {ne_lon} {ne_lat}, {se_lon} {se_lat}, {sw_lon} {sw_lat}, {nw_lon} {nw_lat}))'.format(



More information about the grass-commit mailing list