[MapProxy] globals.cache.base_dir
Radim Blazek
radim.blazek at gmail.com
Wed Jun 15 01:11:45 PDT 2016
On Wed, Jun 15, 2016 at 9:56 AM, Oliver Tonnhofer <olt at omniscale.de> wrote:
> can you provide a complete example? Are you overwriting the location in the cache?
In cache within globals in yaml, the whole yaml could look like:
globals:
cache:
base_dir: '/tmp/mapproxy/cache_data'
services:
demo:
layers:
- name: osm
sources: [osm_cache]
caches:
osm_cache:
grids: [GLOBAL_WEBMERCATOR]
sources: [osm_source]
osm_source:
type: tile
grid: GLOBAL_WEBMERCATOR
url: http://tile.openstreetmap.org/%(z)s/%(x)s/%(y)s.png
Radim
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.com
> OpenStreetMap WMS and tile services | http://maps.omniscale.com
>
>
>
>
>> On 07.06.2016, at 13:25, Radim Blazek <radim.blazek at gmail.com> wrote:
>>
>> Hi,
>>
>> I am not able to get globals.cache.base_dir working with mapproxy
>> 1.8.2. Cache files are still written to ./cache_data. My yaml:
>>
>> globals:
>> cache:
>> base_dir: '/tmp/mapproxy/cache_data'
>>
>> What am I doing wrong?
>>
>> From what I see in GlobalConfiguration,
>> self.base_config = load_default_config()
>> and load_base_config() is never called (apart in test unit). It seems
>> that GlobalConfiguration is never loaded from yaml.
>>
>> Radim
>> _______________________________________________
>> MapProxy mailing list
>> MapProxy at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapproxy
>
More information about the MapProxy
mailing list