Guillaume,<div><br></div><div>One point to note is that while Google Earth uses tiles in epsg:4326 (or &#39;degrees&#39; as you call it), Google Maps uses an entirely different and incompatible set of tiles.  If you want to display tiles in both GE and GMaps, you need two different sets of tiles.  TileCache could potentially create/serve both sets up.  Or Gdal2Tiles can also create each different set for you. But they&#39;re not the same.</div>
<div><br clear="all">  -Josh<br>
<br><br><div class="gmail_quote">2010/1/12 Guillaume Sueur <span dir="ltr">&lt;<a href="mailto:no-reply@neogeo-online.net">no-reply@neogeo-online.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks for this enlightment Klokan. One main point which confused me is<br>
the ability of a gdal2tiles mercator cache to be displayed in<br>
GoogleEarth. But I guess the kml does all the job.<br>
For Tilecache superoverlays to be usable on a 900913 cache, would it be<br>
enough to transform the coordinates generated in the kml overlay in<br>
degrees ?<br>
<br>
Best regards.<br>
<br>
Guillaume<br>
<br>
Le mardi 12 janvier 2010 à 17:33 +0100, Klokan Petr Přidal a écrit :<br>
&gt; Hi Guillaume,<br>
&gt;<br>
&gt; You are comparing address of the tiles in Mercator (EPSG:900913) and<br>
&gt; in Geodetic (EPSG:4326) TMS profiles. I guess your maptiler tiles are<br>
&gt; in &quot;mercator&quot; profile. To set up TileCache for mercator read this post<br>
&gt; from Chris:<br>
&gt; <a href="http://crschmidt.net/blog/archives/311/using-tilecache-with-google-maps-and-virtual-earth/" target="_blank">http://crschmidt.net/blog/archives/311/using-tilecache-with-google-maps-and-virtual-earth/</a><br>

&gt;<br>
&gt; Here are same examples (proving the url is the same for both MapTiler<br>
&gt; and TileCache):<br>
&gt;<br>
&gt; TMS &quot;geodetic&quot; (EPSG:4326) profile - examples:<br>
&gt;<br>
&gt; - <a href="http://labs.metacarta.com/wms-c/tilecache.py/1.0.0/basic/4/16/12.png" target="_blank">http://labs.metacarta.com/wms-c/tilecache.py/1.0.0/basic/4/16/12.png</a><br>
&gt; from <a href="http://www.tilecache.org/" target="_blank">http://www.tilecache.org/</a> website.<br>
&gt; - <a href="http://staremapy.mzk.cz/naturalearth/4/16/12.png" target="_blank">http://staremapy.mzk.cz/naturalearth/4/16/12.png</a><br>
&gt; from <a href="http://staremapy.mzk.cz/naturalearth/openlayers.html" target="_blank">http://staremapy.mzk.cz/naturalearth/openlayers.html</a><br>
&gt;<br>
&gt; TMS &quot;mercator&quot; (EPSG:900913 or EPSG:3857) profile - examples:<br>
&gt;<br>
&gt; - <a href="http://hypercube.telascience.org/tiles/1.0.0/google-tiles/8/40/167.png" target="_blank">http://hypercube.telascience.org/tiles/1.0.0/google-tiles/8/40/167.png</a><br>
&gt; from <a href="http://crschmidt.net/mapping/google-tilecache.html" target="_blank">http://crschmidt.net/mapping/google-tilecache.html</a><br>
&gt; - <a href="http://www.klokan.cz/projects/gdal2tiles/overlay/8/40/167.png" target="_blank">http://www.klokan.cz/projects/gdal2tiles/overlay/8/40/167.png</a><br>
&gt; from <a href="http://www.klokan.cz/projects/gdal2tiles/overlay/openlayers.html" target="_blank">http://www.klokan.cz/projects/gdal2tiles/overlay/openlayers.html</a><br>
&gt;<br>
&gt; This mashup shows different tile names for mercator tiles:<br>
&gt; <a href="http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/" target="_blank">http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/</a><br>
&gt; TMS Mercator is the default output of gdal2tiles/maptiler.<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Klokan Petr Pridal<br>
&gt;<br>
&gt; &gt;&gt; You&#39;re comparing an EPSG:4326 to a EPSG:900913 map... and thinking they&#39;ll<br>
&gt; &gt;&gt; have the same tile IDs? Is that what you&#39;re asking?<br>
&gt; &gt;<br>
&gt; &gt; Did I ? My confusion must invade my postings too then !<br>
&gt; &gt; Here&#39;s what I&#39;m trying to do exactly :<br>
&gt; &gt; I have a huge gdal2tiles cache (EPSG:4326) over France, and I retrieve<br>
&gt; &gt; the tiles from it throught standard TMS requests.<br>
&gt; &gt; I have a TileCache of a WMS layer in EPSG:4326 and I want to overlay it<br>
&gt; &gt; to the previous.<br>
&gt; &gt; I thought, kindly, that using the same TMS request (i mean z/x/y.png) on<br>
&gt; &gt; TC would send me back the correct tile. But it doesn&#39;t. At all.<br>
&gt; &gt; Here is my Tc layer&#39;s definition :<br>
&gt; &gt; type=WMS<br>
&gt; &gt; url=some_url<br>
&gt; &gt; layers=my_layer<br>
&gt; &gt; extension=png<br>
&gt; &gt; srs=EPSG:4326<br>
&gt; &gt; extent_type=loose<br>
&gt; &gt;<br>
&gt; &gt; I can&#39;t guess where the problems comes from...<br>
&gt; &gt;<br>
&gt; &gt; Thanks for your help<br>
&gt; &gt;<br>
&gt; &gt; Guillaume<br>
&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; -- Chris<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt; Regards<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; Guillaume<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; Le lundi 11 janvier 2010 à 13:33 -0500, Christopher Schmidt a écrit :<br>
&gt; &gt;&gt; &gt; &gt; On Mon, Jan 11, 2010 at 03:42:35PM +0100, Guillaume Sueur wrote:<br>
&gt; &gt;&gt; &gt; &gt; &gt; Hi,<br>
&gt; &gt;&gt; &gt; &gt; &gt;<br>
&gt; &gt;&gt; &gt; &gt; &gt; I&#39;m wondering about the TMS grid used in TC. The request I see here<br>
&gt; &gt;&gt; &gt; &gt; &gt; (<a href="http://labs.metacarta.com/wms-c/tilecache.py/1.0.0/basic/5/32/23.png" target="_blank">http://labs.metacarta.com/wms-c/tilecache.py/1.0.0/basic/5/32/23.png</a>)<br>
&gt; &gt;&gt; &gt; &gt; &gt; doesn&#39;t match with what I see there<br>
&gt; &gt;&gt; &gt; &gt; &gt; <a href="http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/" target="_blank">http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/</a><br>
&gt; &gt;&gt; &gt; &gt; &gt; for that area (north-east spain).<br>
&gt; &gt;&gt; &gt; &gt; &gt;<br>
&gt; &gt;&gt; &gt; &gt; &gt; Actually, does TileCache follow a specific TMS grid ?<br>
&gt; &gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt; &gt; &gt; Not sure why you&#39;d expect TMS and Google to be the same; Google is indexed<br>
&gt; &gt;&gt; &gt; &gt; from the top left corner, TMS from the bottom left.<br>
&gt; &gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt; &gt; &gt; Regards,<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt; &gt;&gt; &gt; Tilecache mailing list<br>
&gt; &gt;&gt; &gt; <a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
&gt; &gt;&gt; &gt; <a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Tilecache mailing list<br>
&gt; &gt; <a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
&gt; &gt; <a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
&gt; &gt;<br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</blockquote></div><br></div>