[MapProxy] tile source error handling and WMS requests
Travis Kirstine
traviskirstine at gmail.com
Thu Aug 23 12:28:15 PDT 2018
I have my config as follow in which my source TMS have a 404 error defined
(transparent / no cache). The TMS sources each have a corresponding cache
defined with no caching. A composite cache containing both TMS sources is
also defined. If I make a WMS request to the composite layer and one of
the source TMS layers returns a 500 service unavailable MapProxy will still
generate a image. Is there a way to return a error 404 or other from
MapProxy instead of the image.
sources:
layer2_tms:
type: tile
url: 'http://localhost:88/mapcache/tms/1.0.0/t2@gmaps/%(tms_path)s.xxx
'
grid: spherical_mercator
transparent: true
on_error:
404:
response: transparent
cache: false
layer1_tms:
type: tile
url: 'http://localhost:88/mapcache/tms/1.0.0/t1@gmaps/%(tms_path)s.xxx
'
grid: spherical_mercator
transparent: true
on_error:
404:
response: transparent
cache: false
caches:
layer2_cache:
grids: [spherical_mercator]
sources: [layer2_tms]
meta_buffer: 0
meta_size: [1,1]
disable_storage: true
layer1_cache:
grids: [spherical_mercator]
sources: [layer1_tms]
meta_buffer: 0
meta_size: [1,1]
disable_storage: true
composite_cache:
grids: [spherical_mercator]
sources: [layer2_tms, layer2_tms]
meta_buffer: 0
meta_size: [1,1]
format: mixed
request_format: image/png
cache:
type: riak
nodes:
- host: riak.foobar.com
bucket: composite
layers:
- name: composite
title: 'composite'
sources: [composite_cache]
layers:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20180823/59c5b1f5/attachment.html>
More information about the MapProxy
mailing list