Skip to content

Commit

Permalink
yagajs#20 upgrade to MapProxy 1.13.2 plus fixes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Jan 12, 2022
1 parent 4c7a94e commit 5140c19
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: justb4/mapproxy
tags: latest,1.12.0-5
tags: latest,1.13.2-1
tag_with_ref: false
tag_with_sha: false
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARG LOCALE="en_US.UTF-8"
# Only adds 1MB and handy tools
ARG ADD_DEB_PACKAGES="curl xsltproc libxml2-utils patch"
ARG ADD_PIP_PACKAGES=""
ARG MAPPROXY_VERSION="1.12.0"
ARG MAPPROXY_VERSION="1.13.2"

# ENV settings
ENV MAPPROXY_PROCESSES="4" \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Find image on [Docker Hub](https://hub.docker.com/repository/docker/justb4/mappr

## Supported tags

* `1.12.0`, `1.12`, `1`, `latest`
* `1.13.2`, `latest`

## What is MapProxy

Expand Down
4 changes: 2 additions & 2 deletions examples/default/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ services:
ports:
- "8085:8080"

volumes:
- ./mapproxy:/mapproxy:rw
# volumes:
# - ./mapproxy:/mapproxy:rw
43 changes: 37 additions & 6 deletions examples/standard/config/mapproxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
services:
demo:
tms:
use_grid_names: true
use_grid_names: false
# origin for /tiles service
origin: 'nw'
kml:
use_grid_names: true
use_grid_names: true
wmts:
wms:
md:
Expand All @@ -24,7 +24,7 @@ layers:
sources: [osm_cache]

- name: dutch_aerial
title: Dutch public aerial Map - by Dutch Kadaster-PDOK - RGB 25cm resolution - 2019
title: Dutch public aerial Map - by Dutch Kadaster-PDOK - RGB 7.5cm resolution - latest
sources: [dutch_aerial_cache]

caches:
Expand All @@ -34,7 +34,7 @@ caches:

dutch_aerial_cache:
# Store res 0-12 (RD) and 0-17 (merc, 18 levels)
grids: [dutch_tile_grid, webmercator]
grids: [dutch_tile_grid, webmercator, mercator]
sources: [dutch_aerial_wms]
format: image/jpeg
meta_buffer: 0
Expand All @@ -55,8 +55,8 @@ sources:
dutch_aerial_wms:
type: wms
req:
url: https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wms?
layers: 2019_ortho25
url: https://service.pdok.nl/hwh/luchtfotorgb/wms/v1_0?
layers: Actueel_orthoHR
format: image/jpeg
transparent: false
coverage:
Expand All @@ -77,6 +77,37 @@ grids:
# 17 levels 0-16
res: [3440.64, 1720.32, 860.16, 430.08, 215.04, 107.52, 53.76, 26.88, 13.44, 6.72, 3.36, 1.68, 0.84, 0.42, 0.21, 0.105, 0.0525]

mercator:
base: GLOBAL_MERCATOR
tile_size: [256, 256]
srs: 'EPSG:900913'
# zoom 0-23
# See https://gist.github.com/gagan-bansal/db6fb206f61b38f2f1c3
res: [156543.03392804097,
78271.51696402048,
39135.75848201024,
19567.87924100512,
9783.93962050256,
4891.96981025128,
2445.98490512564,
1222.99245256282,
611.49622628141,
305.748113140705,
152.8740565703525,
76.43702828517625,
38.21851414258813,
19.109257071294063,
9.554628535647032,
4.777314267823516,
2.388657133911758,
1.194328566955879,
0.5971642834779395,
0.29858214173896974,
0.14929107086948487,
0.07464553543474244,
0.03732276771737122,
0.01866138385868561]

globals:
cache:
# where to store the cached images
Expand Down
3 changes: 3 additions & 0 deletions patches/01-srs-iter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ In some cases the demo page renders with 'internal error'
See issue: https://github.com/mapproxy/mapproxy/issues/430
Error in uwsgi output

Update: fixed by https://github.com/mapproxy/mapproxy/pull/420
And in 1.13.2 version. Skipping in [apply.sh](apply.sh), but keeping the fix if ever needed.

# commands

```
Expand Down
2 changes: 1 addition & 1 deletion patches/01-srs-iter/apply.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
set -x
patch /usr/local/lib/python3.7/dist-packages/mapproxy/srs.py srs-iter.patch
echo "SKIP: patch /usr/local/lib/python3.7/dist-packages/mapproxy/srs.py srs-iter.patch"

0 comments on commit 5140c19

Please sign in to comment.