[MapProxy] forwarding requests by type
Jonathan Beliën
jbe at geo6.be
Mon Oct 31 03:41:57 PDT 2016
Hi Kristine,
No problem to do that and it works quite well.
If you use Mapserver, I suggest to use « type: mapserver » instead of « type: wms ».
You’ll find documentation here : https://mapproxy.org/docs/1.8.0/sources.html#mapserver-label
If you activate « services: wms » and use « wms_opts: featureinfo: true » (and « wms_opts: legendgraphic: true »), GetFeatureInfo (and GetLegendGrpahic) request will automatically be forwarded to Mapserver ; tiles will of course be served by MapProxy cache.
Jonathan Beliën
GEO-6
De : MapProxy [mailto:mapproxy-bounces at lists.osgeo.org] De la part de Travis Kirstine
Envoyé : vendredi 28 octobre 2016 19:54
À : mapproxy
Objet : [MapProxy] forwarding requests by type
Is it possible to forward / proxy WMS requests back to the source WMS service and serve tile requests through your cache? Something like the following
layers:
- name: roads
title: Roads
sources: [roads_wms]
tile_sources:[roads_cache]
sources:
roads_wms:
type: wms
wms_opts:
featureinfo: true
req:
url: http://mapserver/foo?
layers: road_layer
caches:
roads_cache:
sources: [roads_wms]
grids: ['GLOBAL_MERCATOR']
meta_size: [8, 8]
meta_buffer: 256
cache:
type: file
directory_layout: tms
directory: /mycaches/
Any WTMS TMS request would use the tile_sources but WMS request would use the sources?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20161031/ba79d6e0/attachment.html>
More information about the MapProxy
mailing list