<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(32, 32, 32); font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 13px; "><div>Many thanks again.</div><div><br></div>Here&#39;s how I have declared the grid<div>

<br></div><div><div>grids:</div><div>  mygrid:</div><div>    srs: &#39;EPSG:900913&#39;</div><div>    bbox: [-20037508.34, -20037508.34, 20037508.34, 20037508.34]</div><div>    bbox_srs: EPSG:900913</div><div><br></div><div>

Should I keep the Google Extents or the extents of my data (8596550.829, 3340667.637, 8598788.35, 3342816.079) in the grid definition ?</div><div><br></div><div>Pls. advise</div></div></span><br><div class="gmail_quote">
On Thu, Feb 10, 2011 at 2:03 PM, Oliver Tonnhofer <span dir="ltr">&lt;<a href="mailto:olt@omniscale.de">olt@omniscale.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<div class="im"><br>
On 10.02.2011, at 09:00, Debasish Sahu wrote:<br>
&gt; Many thanks for the response . I am still having a hard time generating the tiles so that I can overlay it over OSM tiles.<br>
&gt;<br>
&gt; i.e the view is expecting /5/22/12.png as per <a href="http://tile.openstreetmap.org" target="_blank">tile.openstreetmap.org</a> where as where as the 12 is not getting generated through maproxy with the below configuration , the one I am having is<br>


&gt;<br>
&gt; \05\000\000\022\000\000\<br>
&gt; 16.png<br>
&gt; 17.png<br>
&gt; 18.png<br>
&gt; 19.png<br>
<br>
</div>Ah, I already forgot that. OSM does not use the TMS order (from top to bottom) but the one used by Google Maps (bottom to top). Compare:<br>
<a href="http://osm.omniscale.net/proxy/tiles/1.0.0/osm_EPSG900913/1/0/0.png" target="_blank">http://osm.omniscale.net/proxy/tiles/1.0.0/osm_EPSG900913/1/0/0.png</a><br>
<a href="http://tile.openstreetmap.org/1/0/0.png" target="_blank">http://tile.openstreetmap.org/1/0/0.png</a><br>
<br>
You need to flip the y-axis: subtract the y-value from 2^z - 1, e.g 2^5 - 1 - 12 = 19<br>
<div><div></div><div class="h5"><br>
Regards,<br>
Oliver<br>
<br>
--<br>
Oliver Tonnhofer    | Omniscale GmbH &amp; Co KG    | <a href="http://omniscale.de" target="_blank">http://omniscale.de</a><br>
<a href="http://mapproxy.org" target="_blank">http://mapproxy.org</a> | <a href="https://bitbucket.org/olt" target="_blank">https://bitbucket.org/olt</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thanks and Warm Regards<br>Debasish Sahu<br>