[GRASS-SVN] r72125 - grass/branches/releasebranch_7_2/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 25 07:37:52 PST 2018


Author: martinl
Date: 2018-01-25 07:37:52 -0800 (Thu, 25 Jan 2018)
New Revision: 72125

Modified:
   grass/branches/releasebranch_7_2/gui/wxpython/core/ws.py
Log:
wxGUI: fix WMS service in latlong locations
       (merge r72122 from trunk)


Modified: grass/branches/releasebranch_7_2/gui/wxpython/core/ws.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/core/ws.py	2018-01-25 15:33:46 UTC (rev 72124)
+++ grass/branches/releasebranch_7_2/gui/wxpython/core/ws.py	2018-01-25 15:37:52 UTC (rev 72125)
@@ -196,7 +196,11 @@
             if len(r) < 2:
                 continue
             try:
-                if r[0] in ['cols', 'rows']:
+                if r[0] in ['e-w resol3', 'n-s resol3', 'rows3', 'cols3',
+                            'depths']:
+                    # ignore 3D region values (causing problems in latlong locations)
+                    continue
+                if r[0] in ['cols', 'rows', 'zone', 'proj']:
                     region[r[0]] = int(r[1])
                 else:
                     region[r[0]] = float(r[1])



More information about the grass-commit mailing list