[MapProxy] Multiple MapProxy 0.9.1rc1 instances and seeding
Andreas Trawoeger
atrawog at datenscheibe.org
Tue Dec 14 10:07:23 EST 2010
Hi everybody!
I've run into a strange error message when I set up multiple mapproxy
instances and tried to seed them:
$ mapproxy-seed -f nighttime.yaml seed_nighttime.yaml
error: cache mapnik_nl2009pctavg_cache not found. available caches:
mapnik_nl2009pctavg_cache
The reasons seems to be that mapproxy-seed doesn't honor the 'base:
mapproxy.yaml' statement and seeding breaks as soon as you split your
configuration into two yaml files.
Once I merged my nighttime.yaml and mapproxy.yaml into a single files
seeding worked without a problem
My original configuration looked like this:
prod.ini
======
[composite:main]
use = egg:Paste#urlmap
/nighttime = nighttime
[app:nighttime]
use = egg:MapProxy#app
mapproxy_conf = %(here)s/nighttime.yaml
mapproxy.yaml
============
grids:Thanks for any help :-))
EPSG_4326_World:
base: GLOBAL_GEODETIC
srs: 'EPSG:4326'
EPSG_900913_World:
base: GLOBAL_MERCATOR
srs: 'EPSG:900913'
globals:
cache:
base_dir: '/home/mpcache'
lock_dir: '/home/mplocks'
meta_size: [4, 4]
meta_buffer: 100
nighttime.yaml
============
base: mapproxy.yaml
services:
demo:
kml:
tms:
wms:
srs: ['EPSG:4326', 'EPSG:900913']
image_formats: ['image/png']
md:
title: Nighttime
abstract: NOAA DMSP Nighttime images provided by Datenscheibe.org
layers:
- DS_Nighttime_2009_AvgPct:
title: NOAA DMSP-OLS Nighttime Lights Time Series 2009
sources: [mapnik_nl2009pctavg_cache]
caches:
mapnik_nl2009pctavg_cache:
grids: [EPSG_4326_World,EPSG_900913_World]
sources: [mapnik_nl2009pctavg_wms]
link_single_color_images: true
minimize_meta_requests: true
sources:
mapnik_nl2009pctavg_wms:
type: wms
supported_srs: ['EPSG:4326']
req:
url: http://localhost:8000/?
layers: nightlight2009pctavg
seed_nighttime.yaml
=================
views:
world:
bbox: [-180.0,-90.0, 180.0,90.0]
bbox_srs: EPSG:4326
level: [0, 14]
srs: ['EPSG:4326','EPSG:900913']
seeds:
mapnik_nl2009pctavg_cache:
views: ['world']
cu andreas
More information about the MapProxy
mailing list