Thanks again Oliver.<div>Just thinking, if I add an additional WMS source layer, &quot;wms_layer&quot;, referencing the &quot;my_tiles&quot; layer as the WMS source. Would the reprojection then work?</div><div>i.e. &quot;wms_layer&quot; request in EPSG:4326 would trigger the &quot;my_tiles&quot; EPSG:900913 Tiles source on the same server. I did try it, but MapProxy seemed to be hanging.</div>
<div><br></div><div>Could you tell me more specifically, as you mentioned, how I would be able to request cached data in another projection?</div><div><br></div><div>Regards,</div><div>Jason<br><br><div class="gmail_quote">
On Mon, Dec 6, 2010 at 1:13 PM, Oliver Tonnhofer <span dir="ltr">&lt;<a href="mailto:olt@omniscale.de" target="_blank">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">

<div><br>
On 06.12.2010, at 14:00, Jason Lee wrote:<br>
<br>
&gt; Hi,<br>
&gt; I&#39;m trying to configure a Tile source in MapProxy. The source url points to custom map tiles on my local server in a similar format to OpenStreetMap tiles (&quot;<a href="http://mytileserver/z/x/y.png" target="_blank">http://mytileserver/z/x/y.png</a>&quot;), the following is my mapproxy.yaml setup :-<br>


&gt;<br>
&gt; layers:<br>
&gt;   my_tiles:<br>
&gt;     title: My local stash of map tiles<br>
&gt;     sources: [my_tile_cache]<br>
&gt;<br>
&gt; caches:<br>
&gt;   my_tile_cache:<br>
&gt;     grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]<br>
&gt;     sources: [my_tile_source]<br>
<br>
</div>You can only use one grid if you are using tile sources and that grid needs to be in the same projection as the source (EPSG:900913/GLOBAL_MERCATOR in your case). Reprojecting incoming tiles is not supported. You can request that cache in any projection though.<br>


<div><br>
<br>
&gt; sources:<br>
&gt;   my_tile_source:<br>
&gt;     type: tile<br>
&gt;     url: <a href="http://localhost/mytiles/%(z)s/%(x)s/%(y)s.png" target="_blank">http://localhost/mytiles/%(z)s/%(x)s/%(y)s.png</a><br>
&gt;     origin: nw<br>
&gt;<br>
&gt; After saving the changes and MapProxy restarting itself, I see the new &quot;my_tiles&quot; source layer listed in &quot;<a href="http://localhost:8080/demo/" target="_blank">http://localhost:8080/demo/</a>&quot;. However, all but 1 of the services (TMS, EPSG:900913) return valid map tiles. I see that the WMS demo is set to EPSG:4326 and changing to EPSG:900913 subsequently works fine.<br>


&gt;<br>
&gt; Is there something I am missing for my Tiles source layer setup to be able to return maps in EPSG:4326? (or any other SRS other than web mercator 900913)<br>
<br>
<br>
</div>Regards,<br>
Oliver<br>
<font color="#888888"><br>
--<br>
Oliver Tonnhofer &lt;<a href="mailto:olt@omniscale.de" target="_blank">olt@omniscale.de</a>&gt;<br>
Omniscale - Dominik Helle, Oliver Tonnhofer GbR<br>
Nadorster Str. 60, 26123 Oldenburg<br>
Tel: +49(0)441/9392774-2 (Fax: 9)<br>
<br>
</font></blockquote></div><br></div>