Skip to content

Instantly share code, notes, and snippets.

@dakcarto
Created December 23, 2011 21:08
Show Gist options
  • Save dakcarto/1515361 to your computer and use it in GitHub Desktop.
Save dakcarto/1515361 to your computer and use it in GitHub Desktop.
#MapProxy sample configuration file
services:
demo:
kml:
tms:
wms:
srs: ['EPSG:4326', 'EPSG:900913', 'EPSG:4258']
image_formats: ['image/jpeg', 'image/png']
md:
title: MapProxy WMS Proxy geomatic sample
abstract: This a geomatic sample of the fantastic MapProxy server
online_resource: http://geomaticblog.net
contact:
person: Rufus T Firefly
position: blogger
organization: http://geomaticblog.net
email: jsanz[at]geomaticblog.net
fees: 'None'
layers:
- name: osm
title: OpenStreetMap WMS
sources: [osm_cache]
- name: pnoa
title: PNOA
sources: [pnoa_cache]
caches:
osm_cache:
grids: [global_mercator_osm]
sources: [osm_tms]
pnoa_cache:
grids: [grid_pnoa]
sources: [pnoa_wmsc]
meta_size: [1,1]
meta_buffer: 0
sources:
osm_tms:
type: tile
url: http://c.tile.openstreetmap.org/%(tms_path)s.png
origin: nw
pnoa_wmsc:
type: wms
supported_format: image/jpeg
supported_srs: ['EPGS:4258']
req:
url: http://www.idee.es/wms-c/PNOA/PNOA
layers: PNOA
format: image/jpeg
transparent: false
grids:
global_mercator_osm:
base: GLOBAL_MERCATOR
num_levels: 18
grid_pnoa:
base: GLOBAL_GEODETIC
srs: EPSG:4258
tile_size: [256,256]
bbox: [-180, -90, 180, 90]
num_levels: 20
min_res: 0.703125
globals:
image:
resampling_method: nearest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment