Skip to content

Instantly share code, notes, and snippets.

@bbinet
Created April 12, 2012 12:33
Show Gist options
  • Save bbinet/2366936 to your computer and use it in GitHub Desktop.
Save bbinet/2366936 to your computer and use it in GitHub Desktop.
mapproxy.yaml
services:
demo:
kml:
tms:
wms:
srs: ['EPSG:4326', 'EPSG:900913']
image_formats: ['image/jpeg', 'image/png']
layers:
- name: osm
title: OpenOcean OSM
sources: [osm_cache]
caches:
osm_cache:
grids: [global_mercator_osm]
sources: [osm_tms]
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
globals:
# # cache options
cache:
# where to store the cached images
base_dir: './cache_data'
# where to store lockfiles
lock_dir: './cache_data/locks'
# image/transformation options
image:
resampling_method: bicubic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment