[MapProxy] format of cache file

Just van den Broecke just at justobjects.nl
Wed Jun 29 00:09:56 PDT 2016


Hi Omid,

I think that the format field should be

     format: image/jpeg

See documentation:
https://mapproxy.org/docs/nightly/configuration.html#caches

Best,

Just
On 28-06-16 22:52, omid omidan wrote:
> Hi list
>
> I use mapproxy 1.8.2 and config a cache with this configuration.
> the problem is I expect to tile images save in cache directory with .jpg
> file extention but they save with .png extension.
> the source tiles is jpg format and the format parameter also set to jpg
> whay it still save file with .png?
>
> *caches:*
>   my_cache:
>     sources: [mymap]
>     grids: [GLOBAL_MERCATOR]
>     # use a custom image format defined below
>     format: jpg
>     cache:
>       type: file
>       directory: /media/disk2/mycache/
>       directory_layout: tms
>
> *sources:*
>   mymap:
>     type: tile
>
> url: http://192.168.0.100/wmts?service=wmts&request=gettile&version=1.0.0&layer=mylayer&tilematrixset=webmercator&tilematrix=%(z)s&tilerow=%(y)s&tilecol=%(x)s&format=image%%2fjpg
>
> omid
>
>
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy
>





More information about the MapProxy mailing list