[MapProxy] mapproxy and mapnik2
Luca Delucchi
lucadeluge at gmail.com
Fri Aug 3 02:42:09 PDT 2012
Maybe I found the problem using mapproxy-seed I discover that the
problem is on my configuration. I added a bounding box containing only
Italy and so for the first 8 level there are 0 tiles, how can fix it?
I try to change resolution using mapproxy-utils scale but nothing
change. This is my mapproxy.yaml
services:
demo:
kml:
tms:
# needs no arguments
wmts:
wms:
srs: ['EPSG:4326', 'EPSG:900913']
# image_formats: ['image/jpeg', 'image/png']
md:
# metadata used in capabilities documents
title: OSM Geographike
abstract: OSM rendering provides by Geographike.
online_resource: http://2.115.130.153
contact:
person: Simone Gadenz
position:
organization: Geographike
address:
city:
postcode:
country: Italy
phone:
fax:
email: info at omniscale.de
access_constraints:
test di prova
fees: 'None'
layers:
- name: osm
title: OSM rendering Geographike
sources: [osm_cache]
caches:
osm_cache:
grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]
sources: [osm_mapnik]
sources:
osm_mapnik:
type: mapnik
mapfile: /PATH/TO/XMLFILE/geographic2.xml
use_mapnik2: true
grids:
global_geodetic_sqrt2:
base: GLOBAL_GEODETIC
res_factor: 'sqrt2'
srs: 'EPSG:900913'
bbox: [6.6, 35.4, 18.6, 47.1]
bbox_srs: 'EPSG:4326'
res: [
# res level scale @90.7 DPI
280.0000000000, # 0 1000000.00000000
140.0000000000, # 1 500000.00000000
70.0000000000, # 2 250000.00000000
35.0000000000, # 3 125000.00000000
17.5000000000, # 4 62500.00000000
8.7500000000, # 5 31250.00000000
4.3750000000, # 6 15625.00000000
2.1875000000, # 7 7812.50000000
1.0937500000, # 8 3906.25000000
0.5468750000, # 9 1953.12500000
]
globals:
cache:
# where to store the cached images
base_dir: './cache_data'
# where to store lockfiles
lock_dir: './cache_data/locks'
image:
resampling_method: nearest
--
ciao
Luca
http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
More information about the MapProxy
mailing list