[MapProxy] MapProxy serving gdal2tiles output

Oliver Tonnhofer olt at omniscale.de
Wed Nov 28 13:17:04 PST 2012


On 28.11.2012, at 21:31, Angelos Tzotsos wrote:
> I have a simple tif image in EPSG:2100 that I want to serve through a TMS and WMS.
> I have created tiles using gdal2tiles and I want to use MapProxy to provide the above services, without using another server.
> Is this possible?

Yes :)

> What I am doing is defining a cache without a source, giving the directory where the tile structure is located.
> I followed the documentation and some information I got asking on IRC and this is my yaml file so far:
> http://pastebin.com/wAkM4G2d

This looks good. The tricky part will be to configure the right grid of your tiles. I don't know how gdal2tiles works for non-4326/3875 images. Does gdal2tiles give you some information (resolutions, bbox)?
I would remove min_res and add all resolutions that are tiled.

> Unfortunately, I get a blank tile when I ask for 0/0/0.png from my web browser under TMS service.
> I have seen that there is a seed_only option, but for wms sources, I do not know if this is possible for a cache.
> Any hints?


Ignore seed_only, an empty sources list for the cache is enough.


-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://github.com/olt | @oltonn




More information about the MapProxy mailing list