<div dir="ltr"><div><div><div><div><div><div>Hi guys,<br></div> I have a strange problem with my WMTS service. I am using OpenLayers to make the request and I'm using FireBug to view each request. First off, it appears that the request is correct, in firebug I get a url like the following:<br>
<br><a href="http://my.app.com/mapproxy/wmts/Bangladesh/mercatorGrid/6/47/27.png">http://my.app.com/mapproxy/wmts/Bangladesh/mercatorGrid/6/47/27.png</a><br><br></div>so to further investigate, I enter that URL into my browser and I get this error from MapCache<br>
<br>HTTP Error "<a href="http://localhost/mapcache/wmts/1.0.0/Bangladesh/default/GoogleMapsCompatible/6/36/47.png">http://localhost/mapcache/wmts/1.0.0/Bangladesh/default/GoogleMapsCompatible/6/36/47.png</a>": 404<br>
<br></div>This is the weird thing, why did the x value(which should be 27) change to 36? This request will work fine if I change that 36 to 27. <br><br></div>I thought it might have something to do with the grid origin, but switching that didn't seem to do anything. Does anyone have an idea why this might be happening? <br>
<br></div>Here is my config:<br><br>services:<br> wmts:<br> restful: true<br> kvp: false<br><br>caches:<br> bangladeshCache:<br> grids: [mercatorGrid]<br> sources: [bangladeshWMTS]<br><br>grids:<br> mercatorGrid:<br>
srs: 'EPSG:3857'<br># origin: 'nw'<br> <br>sources:<br> bangladeshWMTS:<br> type: tile<br> url: <a href="http://localhost/mapcache/wmts/1.0.0/Bangladesh/default/GoogleMapsCompatible/%(z)s/%(y)s/%(x)s.png">http://localhost/mapcache/wmts/1.0.0/Bangladesh/default/GoogleMapsCompatible/%(z)s/%(y)s/%(x)s.png</a><br>
coverage:<br> bbox: [87,20,94,27]<br> bbox_srs: 'EPSG:4326'<br><br>layers:<br> - name: Bangladesh<br> title: Bangladesh WMTS<br> sources: [bangladeshCache]<br><br></div>Thanks!<br></div>