MapProxy案例:一个图层

示例

http://webgis.pub:6001/

MapProxy 配置文件

01 caches:
02   maplet_WorldCountry:
03     grids:
04     - webmercator
05     sources:
06     - maplet_WorldCountry
07   osm_cache:
08     grids:
09     - webmercator
10     sources:
11     - osm_wms
12 globals: null
13 grids:
14   webmercator:
15     base: GLOBAL_WEBMERCATOR
16 layers:
17 - name: osm
18   sources:
19   - osm_cache
20   title: Omniscale OSM WMS - osm.omniscale.net
21 - name: maplet_WorldCountry
22   sources:
23   - maplet_WorldCountry
24   title: maplet_WorldCountry
25 services:
26   demo: null
27   kml:
28     use_grid_names: true
29   tms:
30     origin: nw
31     use_grid_names: true
32   wms:
33     md:
34       abstract: This is a minimal MapProxy example.
35       title: MapProxy WMS Proxy
36   wmts: null
37 sources:
38   maplet_WorldCountry:
39     image:
40       transparent_color: '#ffffff'
41       transparent_color_tolerance: 0
42     req:
43       layers: lyr_WorldCountry
44       url: http://47.94.22.90/cgi-bin/mapserv?map=/gdata/mfile_world.map
45     type: wms
46   osm_wms:
47     req:
48       layers: osm
49       url: http://osm.omniscale.net/proxy/service?
50     type: wms