Skip to content

Instantly share code, notes, and snippets.

@hblitza
hblitza / transparency_issue_config.yaml
Created July 17, 2024 09:11
MapProxy Bug Two Layers Transparency
services:
demo:
wms:
md:
title: transparency issue
layers:
- name: schulen
title: Schulen Leipzig
sources: [schulen_ags]
import os
import datetime
from fabric.api import run, task, cd, sudo, put, env, local
from fabric.contrib import files, console
from fabric.context_managers import shell_env, path
import fabric.colors
WGET_CMD = 'curl -O -L '
HOME = '/home/os/'
SRC_DIR = HOME + 'src/'
base: ./base.yaml
# -------------------------------
# MapProxy example configuration.
# -------------------------------
#
# This is a minimal MapProxy configuration.
# See full_example.yaml and the documentation for more options.
#
# Starts the following services:
seeds:
dop20_nds:
caches: [dop20_cache]
grids: [utm32_adv]
# coverages: []
levels:
to: 10
dop20_hannover:
caches: [dop20_cache]
grids: [utm32_adv]
base: base.yaml
layers:
- name: dop20_nds
title: DOP 20 Niedersachsen
sources: [dop20_cache]
- name: webatlas_ni_layer
title: Webatlas Niedersachsen
sources: [webatlas_ni_source]
services:
demo:
wms:
srs: ["EPSG:4326", "EPSG:3857", "EPSG:25832"]
md:
title: ZPD WMS Proxy
abstract: This is the central ZPD mapproxy.
contact:
person: Clemens Kraul
organization: ZPD Niedersachsen
server {
listen 80;
gzip on;
gzip_vary on;
gzip_min_length 10240;
gzip_proxied any;
gzip_types image/png image/jpg image/jpeg text/plain text/css text/xml text/javascript application/json application/x-javascript application/xml application/javascript;
client_max_body_size 1024m;
root /var/www/html/;
# WSGI module for use with Apache mod_wsgi or uwsgi
# # uncomment the following lines for logging
# # create a log.ini with `mapproxy-util create -t log-ini`
from logging.config import fileConfig
import os.path
fileConfig(r'/opt/mapproxy/log.ini', {'here': os.path.dirname(__file__)})
from mapproxy.multiapp import make_wsgi_app
application = make_wsgi_app('/opt/mapproxy/projects', allow_listing=True)
[uwsgi]
;https://www.bloomberg.com/company/stories/configuring-uwsgi-production-deployment/
chdir = /opt/mapproxy
wsgi-file = /opt/mapproxy/multimapproxy_uwsgi_prod.py
pidfile=/tmp/mapproxy.pid
http = :8080
;socket = 127.0.0.1:8080
processes = 4 ; Maximum number of workers allowed
cheaper = 1 ; Minimum number of workers allowed
enable-threads = true
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.