-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapproxy.yaml
140 lines (128 loc) · 3.95 KB
/
mapproxy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
services:
demo:
kml:
tms:
# needs no arguments
wms:
# srs: ['EPSG:4326', 'EPSG:900913']
# image_formats: ['image/jpeg', 'image/png']
md:
# metadata used in capabilities documents
title: MapProxy WMS Proxy
abstract: This is the fantastic MapProxy.
online_resource: http://mapproxy.org/
contact:
person: Your Name Here
position: Technical Director
organization:
address: Fakestreet 123
city: Somewhere
postcode: 12345
country: Germany
phone: +49(0)000-000000-0
fax: +49(0)000-000000-0
email: [email protected]
access_constraints:
This service is intended for private and evaluation use only.
The data is licensed as Creative Commons Attribution-Share Alike 2.0
(http://creativecommons.org/licenses/by-sa/2.0/)
fees: 'None'
layers:
- name: osm
title: Omniscale OSM WMS - osm.omniscale.net
sources: [osm_cache]
# - name: osm_full_example
# title: Omniscale OSM WMS - osm.omniscale.net
# sources: [osm_cache_full_example]
caches:
osm_cache:
grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]
sources: [osm_wms]
# osm_cache_full_example:
# meta_buffer: 20
# meta_size: [5, 5]
# format: image/png
# request_format: image/tiff
# link_single_color_images: true
# use_direct_from_level: 5
# grids: [grid_full_example]
# sources: [osm_wms, overlay_full_example]
sources:
osm_wms:
type: wms
req:
url: http://osm.omniscale.net/proxy/service?
layers: osm
# overlay_full_example:
# type: wms
# concurrent_requests: 4
# wms_opts:
# version: 1.3.0
# featureinfo: true
# supported_srs: ['EPSG:4326', 'EPSG:31467']
# supported_formats: ['image/tiff', 'image/jpeg']
# http:
# ssl_no_cert_checks: true
# req:
# url: https://user:[email protected]:81/service?
# layers: roads,rails
# styles: base,base
# transparent: true
# # # always request in this format
# # format: image/png
# map: /home/map/mapserver.map
grids:
global_geodetic_sqrt2:
base: GLOBAL_GEODETIC
res_factor: 'sqrt2'
# grid_full_example:
# tile_size: [512, 512]
# srs: 'EPSG:900913'
# bbox: [5, 45, 15, 55]
# bbox_srs: 'EPSG:4326'
# min_res: 2000 #m/px
# max_res: 50 #m/px
# align_resolutions_with: GLOBAL_MERCATOR
# another_grid_full_example:
# srs: 'EPSG:900913'
# bbox: [5, 45, 15, 55]
# bbox_srs: 'EPSG:4326'
# res_factor: 1.5
# num_levels: 25
globals:
# # coordinate transformation options
# srs:
# # WMS 1.3.0 requires all coordiates in the correct axis order,
# # i.e. lon/lat or lat/lon. Use the following settings to
# # explicitly set a CRS to either North/East or East/North
# # ordering.
# axis_order_ne: ['EPSG:9999', 'EPSG:9998']
# axis_order_en: ['EPSG:0000', 'EPSG:0001']
# # you can set the proj4 data dir here, if you need custom
# # epsg definitions. the path must contain a file named 'epsg'
# # the format of the file is:
# # <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs <>
# proj_data_dir: '/path to dir that contains epsg file'
# # cache options
cache:
# where to store the cached images
base_dir: './cache_data'
# where to store lockfiles
lock_dir: './cache_data/locks'
# # request x*y tiles in one step
# meta_size: [4, 4]
# # add a buffer on all sides (in pixel) when requesting
# # new images
# meta_buffer: 80
# image/transformation options
image:
resampling_method: nearest
# resampling_method: bilinear
# resampling_method: bicubic
# jpeg_quality: 90
# # stretch cached images by this factor before
# # using the next level
# stretch_factor: 1.15
# # shrink cached images up to this factor before
# # returning an empty image (for the first level)
# max_shrink_factor: 4.0