[MapProxy] Layout of cached version is much smaller than live version
TDS
tds at tds-net.de
Wed Jul 16 05:52:56 PDT 2014
Hello,
can someone explain me how to fix this? Mapserver 6.4.1.
Cache:
Live (without Mapproxy):
mapproxy.yaml:
services:
demo:
wms:
# supported SRS for this WMS
srs: ['EPSG:31466', 'EPSG:31467', 'EPSG:31468', 'EPSG:31469',
'EPSG:25832', 'EPSG:25833', 'EPSG:3068', 'EPSG:3857', 'EPSG:4326',
'EPSG:900913', 'CRS:84']
# force the layer extents (BBOX) to be displayed in this SRS
bbox_srs: ['EPSG:31466', 'EPSG:31467', 'EPSG:31468', 'EPSG:31469',
'EPSG:25832', 'EPSG:25833', 'EPSG:3068', 'EPSG:3857', 'EPSG:4326',
'EPSG:900913', 'CRS:84']
# limit the supported image formats.
image_formats: ['image/png', 'image/jpeg', 'image/gif',
'image/GeoTIFF', 'image/tiff']
# add attribution text in the lower-right corner.
# attribution:
# text: '(c) e-strict 2011-2014'
# return an OGC service exception when one or more sources return
errors
# or no response at all (e.g. timeout)
on_source_errors: raise
# maximum output size for a WMS requests in pixel, default is 4000
x 4000
# compares the product, eg. 3000x1000 pixel < 2000x2000 pixel and
is still
# permitted
max_output_pixels: [2000, 2000]
# some WMS clients do not send all required parameters in feature info
# requests, MapProxy ignores these errors unless you set strict to
true.
strict: true
# list of feature info types the server should offer
featureinfo_types: ['text', 'html', 'xml']
md:
# metadata used in capabilities documents
title: OSM_Geomonitoring
abstract: "OSM-Dienst - Basiert auf Geodaten (C) OpenStreetMap
und Mitwirkende, CC-BY-SA Lizenz."
online_resource: http://domain.devel/osm?
contact:
# multiline strings are possible with the right indention
access_constraints:
This service is intended for private and evaluation use only.
fees: "None"
layers:
# layer with minimal options
- name: OSM
title: OpenStreetMap
sources: [osm_cache]
caches:
osm_cache:
grids: [EPSG31466, EPSG31467, EPSG31468, EPSG31469, EPSG25832,
EPSG25833, EPSG3068, EPSG3857, EPSG4326, EPSG900913]
sources: [osm_wms_mapserver]
# request a meta tile, that consists of m x n tiles
meta_size: [4, 4]
# increase the size of each meta-tile request by n pixel in each
direction
# this can solve cases where labels are cut-off at the edge of tiles
meta_buffer: 10
# image format for the cache, default format is image/png
format: image/png
grids:
EPSG31466:
srs: 'EPSG:31466'
bbox: [2490547.1867, 5440321.7879, 2609576.6008, 5958700.0208]
origin: 'sw'
EPSG31467:
srs: 'EPSG:31467'
bbox: [3386564.9400, 5237917.9109, 3613579.2251, 6104500.7393]
origin: 'sw'
EPSG31468:
srs: 'EPSG:31468'
bbox: [4386596.4101, 5237914.5325, 4613610.5843, 6104496.9694]
origin: 'sw'
EPSG31469:
srs: 'EPSG:31469'
bbox: [5386627.6162, 5237909.9506, 5613641.6401, 6104491.8566]
origin: 'sw'
EPSG25832:
srs: 'EPSG:25832'
bbox: [265948.8191, 6421521.2254, 677786.3629, 7288831.7014]
origin: 'nw'
EPSG25833:
srs: 'EPSG:25833'
bbox: [227879.8880, 3932632.6543, 1044484.3835, 8893131.0281]
origin: 'nw'
EPSG3068:
srs: 'EPSG:3068'
bbox: [2816.9273, 300.1350, 49855.0971, 39377.9521]
origin: 'sw'
EPSG3857:
srs: 'EPSG:3857'
bbox: [653026.849671, 5986291.29145, 1674473.34649, 7373158.08758]
EPSG4326:
srs: 'EPSG:4326'
bbox: [5.86624, 47.27021, 15.04205, 55.05814]
EPSG900913:
srs: 'EPSG:900913'
bbox: [653026.849671, 5986291.29145, 1674473.34649, 7373158.08758]
sources:
osm_wms:
type: wms
supported_srs: ['EPSG:31466', 'EPSG:31467', 'EPSG:31468',
'EPSG:31469', 'EPSG:25832', 'EPSG:25833', 'EPSG:3068', 'EPSG:3857',
'EPSG:4326', 'EPSG:900913']
req:
url:
http://domain.devel/cgi-bin/mapserv?map=../private/mapfiles/osm.map
layers:
land,landusage,water,borders,places,highways,railways,aeroways,transport,buildings,shields
osm_wms_mapserver:
type: mapserver
supported_srs: ['EPSG:31466', 'EPSG:31467', 'EPSG:31468',
'EPSG:31469', 'EPSG:25832', 'EPSG:25833', 'EPSG:3068', 'EPSG:3857',
'EPSG:4326', 'EPSG:900913']
req:
# path to Mapserver mapfile instead of URL
map: /var/www/domain/private/mapfiles/osm.map
layers:
land,landusage,water,borders,places,highways,railways,aeroways,transport,buildings,shields
mapserver:
binary: /var/www/domain/cgi-bin/mapserv
working_dir: /var/www/domain/tmp
globals:
srs:
# override system projection file
proj_data_dir: '/var/www/domain/private/mapfiles/'
# cache options
cache:
# where to store the cached images
base_dir: './cache_data'
# where to store lockfiles for concurrent_requests
lock_dir: './cache_data/locks'
# where to store lockfiles for tile creation
tile_lock_dir: './cache_data/tile_locks'
# request x*y tiles in one step
### meta_size: [4, 4]
# add a buffer on all sides (in pixel) when requesting
# new images
### meta_buffer: 10
# image/transformation options
image:
resampling_method: bilinear
jpeg_quality: 90
--
Bye, Mathias
------------------------------------------------------------------------
mailto:tds at tds-net.de
------------------------------------------------------------------------
1+1=10
You have a question? - 42 or RTFM.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20140716/df7e9c13/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hdfdgjei.png
Type: image/png
Size: 18670 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20140716/df7e9c13/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jdjaiede.png
Type: image/png
Size: 31391 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20140716/df7e9c13/attachment-0003.png>
More information about the MapProxy
mailing list