Hi,<div><br></div><div>I create a TMS with tiles generate from gdal2tiles in sphericalMercator (EPSG:900913),</div><div>and Create a WMS Server with WGS84 projection (EPSG:4326).</div><div><br></div><div>But HOW can I reproject one of them, the TMS to EPSG:4326 or the WMS to EPSG:900913.</div>
<div>Or even better, there is an script to generate the tile address:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>function overlay_getTileURL(bounds) {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>var res = this.map.getResolution();</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>var x = Math.round((bounds.left - this.maxExtent.left) / (res * this.tileSize.w));</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>var y = Math.round((bounds.bottom - this.tileOrigin.lat) / (res * this.tileSize.h));</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>var z = this.map.getZoom();</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if (mapBounds.intersectsBounds( bounds ) && z >= mapMinZoom && z <= mapMaxZoom ) {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>return "<a href="http://localhost/tizo/tiles/">http://localhost/tizo/tiles/</a>" + z + "/" + x + "/" + y + "." + this.type;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>} else {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>return "<a href="http://localhost/tizo/tiles/13/3104/3556.png">http://localhost/tizo/tiles/13/3104/3556.png</a>"; // A image sample to test the correct path</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}<span class="Apple-tab-span" style="white-space:pre">                </span></div></div><div>
How can I change this script to calculate this number of tiles, with the EPGS:900913?</div>
<div><br></div><div>Att,</div><div><br clear="all">Fernando G. Norte<br>BHte - MG<br>cel: +55 31 9119 8814<br>-------------------------<br>MSN e Gtalk # <a href="mailto:fnorte@gmail.com">fnorte@gmail.com</a><br>
</div>