[MapProxy] MapProxy with tiles parameter in the WMS request
Stefan Peuser
Stefan.Peuser at krzn.de
Sun Mar 21 08:03:39 PDT 2021
I have configured an OSM WMS with MapProxy. The yaml file is listed below.
The WMS works for example in QGIS. In other clients, however, I get the
error "Request too large or invalid BBOX".
Request:
https://myserver/osm/service?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=osm&TILED=true&WIDTH=256&HEIGHT=256&SRS=EPSG%3A25832&STYLES=&BBOX=317622.07742450386%2C5729413.627388174%2C320065.3241739231%2C5731856.874137593
:
The problem seems to be the parameter Tiles = true. The parameter is set
via the clients. If I change the value to false I get a result (here a
png). The BBOX in the WMS request is within the defined BBOX in the yaml
and the data. I haven't found any ways to solve the problem so far. What
else can help?
Many greetings
Stefan
services:
demo:
wms:
srs: ['CRS:84','EPSG:3857','EPSG:4326','EPSG:25832']
#bbox_srs: ['EPSG:3857','EPSG:4326','EPSG:25832']
bbox_srs:
- 'EPSG:3857'
- 'EPSG:4326'
- srs: 'EPSG:25832'
bbox: [312500, 5695500, 358000, 5744000]
image_formats: ['image/png', 'image/jpeg', 'image/png; mode=8bit',
'image/png; mode=32bit']
versions: ['1.3.0', '1.1.1']
featureinfo_types: ['text', 'html', 'xml', 'json']
md:
...
layers:
- name: osm
title: OpenStreetMap
sources: [osm_cache]
md:
abstract: Darstellung der OpenStreetMap-Daten im
Standard-Mapnik-Stil
caches:
osm_cache:
grids: [osm_grid]
sources: [osm_tiles]
format: image/png
sources:
osm_tiles:
type: tile
url: https://myserver/openstreetmap/%(z)s/%(x)s/%(y)s.png
grid: osm_grid
grids:
osm_grid:
base: GLOBAL_MERCATOR
srs: EPSG:900913
origin: nw
globals:
cache:
base_dir: ./cache_data/osm
lock_dir: './cache_data/locks'
image:
resampling_method: bilinear
jpeg_quality: 100
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20210321/5230200f/attachment.html>
More information about the MapProxy
mailing list