Thank you very much for your help, it works. Following is the changes in the yaml file:<div><br></div><div>layers:</div><div><div> - name: test</div><div> title: Test</div><div> sources: [test_cache]</div><div><div>
<br></div><div>caches:</div><div> test_cache:</div><div> grids: [tile_grid_osm]</div><div> sources: []</div><div> cache:</div><div> type: file</div><div> directory_layout: tms</div><div> directory: <your_titles_folder></div>
</div><div><br></div><div><div>grids:</div><div> tile_grid_osm:</div><div> <your tiles' grid. for example, if you have google or openstreetmap tiles, use the following:></div><div> base: GLOBAL_MERCATOR</div>
<div> origin: nw</div></div><div> </div><div>Again, thank you for speedy response.</div><div><br></div><div>...-H </div><br><div class="gmail_quote">On Thu, Jan 31, 2013 at 2:09 PM, Oliver Tonnhofer <span dir="ltr"><<a href="mailto:tonnhofer@omniscale.de" target="_blank">tonnhofer@omniscale.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 31.01.2013, at 15:42, Hoang Dam wrote:<br>
> From reading the document, Mapproxy can be used to create WMS from existing tile server (<a href="http://mapproxy.org/docs/1.5.0/configuration_examples.html#create-wms-from-existing-tile-server" target="_blank">http://mapproxy.org/docs/1.5.0/configuration_examples.html#create-wms-from-existing-tile-server</a>). If I have a set of tile images, can I use Mapproxy to create WMS or TMS for those tiles. If so, what would the configuration be like?<br>
<br>
</div>You could create a file cache with `directory_layout: tms` and set a matching grid:<br>
<a href="http://mapproxy.org/docs/nightly/caches.html" target="_blank">http://mapproxy.org/docs/nightly/caches.html</a><br>
<br>
You can configure an empty list for the sources of that cache.<br>
<br>
Regards,<br>
Oliver<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Oliver Tonnhofer | Omniscale GmbH & 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://github.com/olt" target="_blank">https://github.com/olt</a> | @oltonn<br>
<br>
<br>
</font></span></blockquote></div><br></div>