scripts/lech/docker/mapproxy.yaml

84 lines
2.3 KiB
YAML

# -------------------------------
# MapProxy example configuration.
# -------------------------------
#
# This is a minimal MapProxy configuration.
# See full_example.yaml and the documentation for more options.
#
# Starts the following services:
# Demo:
# http://localhost:8080/demo
# WMS:
# capabilities: http://localhost:8080/service?REQUEST=GetCapabilities
# WMTS:
# capabilities: http://localhost:8080/wmts/1.0.0/WMTSCapabilities.xml
# first tile: http://localhost:8080/wmts/osm/webmercator/0/0/0.png
# Tile service (compatible with OSM/etc.)
# first tile: http://localhost:8080/tiles/osm/webmercator/0/0/0.png
# TMS:
# note: TMS is not compatible with OSM/Google Maps/etc.
# fist tile: http://localhost:8080/tms/1.0.0/osm/webmercator/0/0/0.png
# KML:
# initial doc: http://localhost:8080/kml/osm/webmercator
services:
demo:
wmts:
restful_template:
'/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png'
layers:
- name: blacksburg_lidar
title: Blacksburg Lidar
sources: [blacksburg_lidar_cache]
- name: osm
title: OSM
sources: [osm_cache]
- name: osmTopo
title: OSM Topo
sources: [osmTopo_cache]
- name: VAPublicSinkholes
title: VA Public Sinkholes
sources: [va_public_sinkholes]
caches:
blacksburg_lidar_cache:
grids: [GLOBAL_WEBMERCATOR]
sources: [blacksburg_lidar]
osm_cache:
grids: [GLOBAL_WEBMERCATOR]
sources: [osm_tiles]
osmTopo_cache:
grids: [GLOBAL_WEBMERCATOR]
sources: [osmTopo_tiles]
va_public_sinkholes:
grids: [GLOBAL_WEBMERCATOR]
sources: [va_public_sinkholes]
sources:
blacksburg_lidar:
type: tile
grid: GLOBAL_WEBMERCATOR
url: https://tile.bigcavemaps.com/geoserver/gwc/service/wmts/rest/bburg:lidar/line/WebMercatorQuad/%(z)s/%(x)s/%(y)s?format=image/png
osm_tiles:
type: tile
grid: GLOBAL_WEBMERCATOR
url: http://c.tile.openstreetmap.org/%(z)s/%(x)s/%(y)s.png
osmTopo_tiles:
type: tile
grid: GLOBAL_WEBMERCATOR
url: https://b.tile.opentopomap.org/%(z)s/%(x)s/%(y)s.png
va_public_sinkholes:
type: arcgis
req:
layers: VA Sinkholes
transparent: true
url: https://vanhde.org/arcgis/rest/services/VA_Public/pred_Sinkholes/MapServer
on_error:
500:
response: transparent
cache: True
globals: