Guillaume,<div><br></div><div>One point to note is that while Google Earth uses tiles in epsg:4326 (or 'degrees' 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'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"><<a href="mailto:no-reply@neogeo-online.net">no-reply@neogeo-online.net</a>></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>
> Hi Guillaume,<br>
><br>
> You are comparing address of the tiles in Mercator (EPSG:900913) and<br>
> in Geodetic (EPSG:4326) TMS profiles. I guess your maptiler tiles are<br>
> in "mercator" profile. To set up TileCache for mercator read this post<br>
> from Chris:<br>
> <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>
><br>
> Here are same examples (proving the url is the same for both MapTiler<br>
> and TileCache):<br>
><br>
> TMS "geodetic" (EPSG:4326) profile - examples:<br>
><br>
> - <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>
> from <a href="http://www.tilecache.org/" target="_blank">http://www.tilecache.org/</a> website.<br>
> - <a href="http://staremapy.mzk.cz/naturalearth/4/16/12.png" target="_blank">http://staremapy.mzk.cz/naturalearth/4/16/12.png</a><br>
> from <a href="http://staremapy.mzk.cz/naturalearth/openlayers.html" target="_blank">http://staremapy.mzk.cz/naturalearth/openlayers.html</a><br>
><br>
> TMS "mercator" (EPSG:900913 or EPSG:3857) profile - examples:<br>
><br>
> - <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>
> from <a href="http://crschmidt.net/mapping/google-tilecache.html" target="_blank">http://crschmidt.net/mapping/google-tilecache.html</a><br>
> - <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>
> 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>
><br>
> This mashup shows different tile names for mercator tiles:<br>
> <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>
> TMS Mercator is the default output of gdal2tiles/maptiler.<br>
><br>
> Best regards,<br>
><br>
> Klokan Petr Pridal<br>
><br>
> >> You're comparing an EPSG:4326 to a EPSG:900913 map... and thinking they'll<br>
> >> have the same tile IDs? Is that what you're asking?<br>
> ><br>
> > Did I ? My confusion must invade my postings too then !<br>
> > Here's what I'm trying to do exactly :<br>
> > I have a huge gdal2tiles cache (EPSG:4326) over France, and I retrieve<br>
> > the tiles from it throught standard TMS requests.<br>
> > I have a TileCache of a WMS layer in EPSG:4326 and I want to overlay it<br>
> > to the previous.<br>
> > I thought, kindly, that using the same TMS request (i mean z/x/y.png) on<br>
> > TC would send me back the correct tile. But it doesn't. At all.<br>
> > Here is my Tc layer's definition :<br>
> > type=WMS<br>
> > url=some_url<br>
> > layers=my_layer<br>
> > extension=png<br>
> > srs=EPSG:4326<br>
> > extent_type=loose<br>
> ><br>
> > I can't guess where the problems comes from...<br>
> ><br>
> > Thanks for your help<br>
> ><br>
> > Guillaume<br>
> ><br>
> >><br>
> >> -- Chris<br>
> >><br>
> >> > Regards<br>
> >> ><br>
> >> > Guillaume<br>
> >> ><br>
> >> ><br>
> >> > Le lundi 11 janvier 2010 à 13:33 -0500, Christopher Schmidt a écrit :<br>
> >> > > On Mon, Jan 11, 2010 at 03:42:35PM +0100, Guillaume Sueur wrote:<br>
> >> > > > Hi,<br>
> >> > > ><br>
> >> > > > I'm wondering about the TMS grid used in TC. The request I see here<br>
> >> > > > (<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>
> >> > > > doesn't match with what I see there<br>
> >> > > > <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>
> >> > > > for that area (north-east spain).<br>
> >> > > ><br>
> >> > > > Actually, does TileCache follow a specific TMS grid ?<br>
> >> > ><br>
> >> > > Not sure why you'd expect TMS and Google to be the same; Google is indexed<br>
> >> > > from the top left corner, TMS from the bottom left.<br>
> >> > ><br>
> >> > > Regards,<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>
> >><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>
> ><br>
><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>