Explorar o código

r.in.wms: wmts fix for maxrow/col

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63269 15284696-431f-4ddb-bdfa-cd5b030d7da7
Štěpán Turek %!s(int64=10) %!d(string=hai) anos
pai
achega
1441a3fe6f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      scripts/r.in.wms/wms_drv.py

+ 4 - 0
scripts/r.in.wms/wms_drv.py

@@ -642,6 +642,10 @@ class WMTSRequestMgr(BaseRequestMgr):
                     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