Prechádzať zdrojové kódy

r.in.wms: wmts fix for maxrow/col (backported 63269)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63270 15284696-431f-4ddb-bdfa-cd5b030d7da7
Štěpán Turek 10 rokov pred
rodič
commit
a597eab668
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  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