[GRASS-SVN] r63270 - grass/branches/releasebranch_7_0/scripts/r.in.wms

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 28 12:48:16 PST 2014


Author: turek
Date: 2014-11-28 12:48:16 -0800 (Fri, 28 Nov 2014)
New Revision: 63270

Modified:
   grass/branches/releasebranch_7_0/scripts/r.in.wms/wms_drv.py
Log:
r.in.wms: wmts fix for maxrow/col (backported 63269)

Modified: grass/branches/releasebranch_7_0/scripts/r.in.wms/wms_drv.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r.in.wms/wms_drv.py	2014-11-28 20:33:33 UTC (rev 63269)
+++ grass/branches/releasebranch_7_0/scripts/r.in.wms/wms_drv.py	2014-11-28 20:48:16 UTC (rev 63270)
@@ -642,6 +642,10 @@
                     i_tag = limit.find(self.xml_ns.NsWmts(i[1]))
 
                     mat_num_bbox[i[0]] = int(i_tag.text)
+
+                    if i[0] in ('max_row', 'max_col'):
+                        mat_num_bbox[i[0]] = mat_num_bbox[i[0]] - 1
+
                 break
         return mat_num_bbox
 



More information about the grass-commit mailing list