File tree Expand file tree Collapse file tree 3 files changed +76
-2
lines changed
Expand file tree Collapse file tree 3 files changed +76
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN apt-get -y update \
1818 git \
1919 && rm -rf /var/lib/apt/lists/*
2020
21- RUN pip install PyYAML boto3 Pillow requests Shapely eventlet gunicorn uwsgi prometheus_client
21+ RUN pip install Numpy PyYAML boto3 Pillow requests Shapely eventlet gunicorn uwsgi prometheus_client
2222# master for the 1.12-alpha
2323RUN pip install git+https://github.com/mapproxy/mapproxy.git@master
2424
@@ -29,6 +29,10 @@ RUN groupadd -g 1337 mapproxy \
2929
3030RUN apt-get clean
3131
32+ # default dir needed for the cache_data
33+ RUN mkdir -p /srv/mapproxy/cache_data
34+ RUN chmod a+rwx /srv/mapproxy/cache_data
35+
3236WORKDIR /srv/mapproxy
3337
3438EXPOSE 80
Original file line number Diff line number Diff line change 11# -------------------------------
22# MapProxy configuration.
3+ #
4+ # OSM example based on https://wiki.openstreetmap.org/wiki/MapProxy
35# -------------------------------
46services :
57 demo :
8+ wmts :
9+ kvp : true
10+ restful : true
11+
12+ layers :
13+ - name : osm
14+ title : Open Streetmap Tiles
15+ sources : [osm_cache]
16+
17+ caches :
18+ osm_cache :
19+ sources : [osm_tiles]
20+ grids : [GLOBAL_MERCATOR]
21+ format : image/png
22+ cache :
23+ type : geopackage
24+ filename : /srv/mapproxy/cache_data/osm.gpkg
25+ table_name : osm_tiles
26+
27+ sources :
28+ osm_tiles :
29+ type : tile
30+ url : http://c.tile.openstreetmap.org/%(tms_path)s.%(format)s
31+ grid : osm_grid
32+
33+ grids :
34+ osm_grid :
35+ srs : EPSG:900913
36+ origin : nw
637
738globals :
839 cache :
940 base_dir : ' /srv/mapproxy/cache_data'
1041 lock_dir : ' /srv/mapproxy/cache_data/locks'
11- tile_lock_dir : ' /srv/mapproxy/cache_data/tile_locks'
42+ tile_lock_dir : ' /srv/mapproxy/cache_data/tile_locks'
43+
44+ image :
45+ resampling_method : bilinear
46+ jpeg_quality : 90
Original file line number Diff line number Diff line change @@ -146,15 +146,50 @@ data:
146146 mapproxy.yaml : |-
147147 # -------------------------------
148148 # MapProxy configuration.
149+ #
150+ # OSM example based on https://wiki.openstreetmap.org/wiki/MapProxy
149151 # -------------------------------
150152 services:
151153 demo:
154+ wmts:
155+ kvp: true
156+ restful: true
157+
158+ layers:
159+ - name: osm
160+ title: Open Streetmap Tiles
161+ sources: [osm_cache]
162+
163+ caches:
164+ osm_cache:
165+ sources: [osm_tiles]
166+ grids: [GLOBAL_MERCATOR]
167+ format: image/png
168+ cache:
169+ type: geopackage
170+ filename: /srv/mapproxy/cache_data/osm.gpkg
171+ table_name: osm_tiles
172+
173+ sources:
174+ osm_tiles:
175+ type: tile
176+ url: http://c.tile.openstreetmap.org/%(tms_path)s.%(format)s
177+ grid: osm_grid
178+
179+ grids:
180+ osm_grid:
181+ srs: EPSG:900913
182+ origin: nw
152183
153184 globals:
154185 cache:
155186 base_dir: '/srv/mapproxy/cache_data'
156187 lock_dir: '/srv/mapproxy/cache_data/locks'
157188 tile_lock_dir: '/srv/mapproxy/cache_data/tile_locks'
189+
190+ image:
191+ resampling_method: bilinear
192+ jpeg_quality: 90
158193 uwsgi.ini : |-
159194 [uwsgi]
160195 chdir = $(UWSGI_CHDIR)
You can’t perform that action at this time.
0 commit comments