<div dir="ltr"><div><div>Thank you Oliver, <br></div>  That was definitely the problem, everything is working good now that my tile source is using the same grid as my cache.<br><br></div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Mon, Jan 21, 2013 at 6:48 AM, Oliver Tonnhofer <span dir="ltr"><<a href="mailto:olt@omniscale.de" target="_blank">olt@omniscale.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
On 18.01.2013, at 23:25, Seth Ellingson wrote:<br>
[...]<br>
<div class="im">> 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" target="_blank">http://localhost/mapcache/wmts/1.0.0/Bangladesh/default/GoogleMapsCompatible/6/36/47.png</a>": 404<br>

><br>
> 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>
> 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>You need to configure the grid for the tile source.<br>
<br>
<br>
> Here is my config:<br>
[...]<br>
<div class="im">> 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" target="_blank">http://localhost/mapcache/wmts/1.0.0/Bangladesh/default/GoogleMapsCompatible/%(z)s/%(y)s/%(x)s.png</a><br>

</div>     grid: mercatorGrid<br>
<div class="im">>     coverage:<br>
>       bbox: [87,20,94,27]<br>
>       bbox_srs: 'EPSG:4326'<br>
<br>
</div>and your mercatorGrid needs `origin: nw`.<br>
<br>
<br>
Regards,<br>
Oliver<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | <a href="http://omniscale.com" target="_blank">http://omniscale.com</a><br>
<a href="http://mapproxy.org" target="_blank">http://mapproxy.org</a> | <a href="https://github.com/olt" target="_blank">https://github.com/olt</a>    | @oltonn<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>