[GRASS-SVN] r72122 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 25 07:27:36 PST 2018
Author: martinl
Date: 2018-01-25 07:27:36 -0800 (Thu, 25 Jan 2018)
New Revision: 72122
Modified:
grass/trunk/gui/wxpython/core/ws.py
Log:
wxGUI: fix WMS service in latlong locations
Modified: grass/trunk/gui/wxpython/core/ws.py
===================================================================
--- grass/trunk/gui/wxpython/core/ws.py 2018-01-25 13:19:10 UTC (rev 72121)
+++ grass/trunk/gui/wxpython/core/ws.py 2018-01-25 15:27:36 UTC (rev 72122)
@@ -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