Skip to content

Instantly share code, notes, and snippets.

@krishnaglodha
Created September 12, 2021 03:52
Show Gist options
  • Save krishnaglodha/7c95b2441532220b86ae8ae3d5cc559e to your computer and use it in GitHub Desktop.
Save krishnaglodha/7c95b2441532220b86ae8ae3d5cc559e to your computer and use it in GitHub Desktop.
Default mapproxy.yaml file when we install mapproxy py package
# -------------------------------
# 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.
# first 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:
tms:
use_grid_names: true
# origin for /tiles service
origin: 'nw'
kml:
use_grid_names: true
wmts:
wms:
md:
title: MapProxy WMS Proxy
abstract: This is a minimal MapProxy example.
layers:
- name: osm
title: Omniscale OSM WMS - osm.omniscale.net
sources: [osm_cache]
caches:
osm_cache:
grids: [webmercator]
sources: [osm_wms]
sources:
osm_wms:
type: wms
req:
url: https://maps.omniscale.net/v2/demo/style.default/service?
layers: osm
grids:
webmercator:
base: GLOBAL_WEBMERCATOR
globals:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment