Skip to content

Instantly share code, notes, and snippets.

@bbinet
Created April 12, 2012 13:09
Show Gist options
  • Save bbinet/2367100 to your computer and use it in GitHub Desktop.
Save bbinet/2367100 to your computer and use it in GitHub Desktop.
mapproxy config that would support internal layer as source
services:
demo:
kml:
tms:
wms:
srs: ['EPSG:4326', 'EPSG:900913']
image_formats: ['image/jpeg', 'image/png']
layers:
- name: osm900913
title: OpenOcean OSM
sources: [osm_cache_900913]
- name: osm4326
title: OpenOcean OSM2
sources: [osm_cache_4326]
caches:
osm_cache_900913:
grids: [global_mercator_osm]
sources: [osm_tms]
osm_cache_4326:
grids: [GLOBAL_GEODETIC]
sources: [osm4326] # osm4326 is an internal layer
sources:
osm_tms:
type: tile
url: http://c.tile.openstreetmap.org/%(tms_path)s.png
grid: global_mercator_osm
grids:
global_mercator_osm:
base: GLOBAL_MERCATOR
origin: nw
num_levels: 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment