<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">Hi,<br>
I’m new to MapProxy and I’m trying to get a very basic setup running with a mapnik source.</p>
<p dir="auto">I have Mapnik working successfully with Apache and mod_tile/renderd but when I try to generate tiles via the MapProxy demo app I get the following errors:</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">[info] 192.168.65.1 - - [22/Mar/2024 07:54:34] "GET /service?layer=mapnik&style=&tilematrixset=bng&Service=WMTS&Request=GetTile&Version=1.0.0&Format=png&TileMatrix=6&TileCol=21&TileRow=43 HTTP/1.1" 500 -
proj_create: init=epsg:/init=IGNF: syntax not supported in non-PROJ4 emulation mode
[2024-03-22 07:54:34,713] mapproxy.source.request - INFO - API /home/renderer/src/openstreetmap-carto/mapnik.xml:(399902.34375,399902.34375,493847.65625,493847.65625):EPSG:27700:(1184,1184) 500 - 1
[2024-03-22 07:54:34,713] mapproxy.source.mapnik - ERROR - could not render Mapnik map: failed to initialize projection with: '+init=epsg:27700'
proj_create: init=epsg:/init=IGNF: syntax not supported in non-PROJ4 emulation mode
</code></pre>
<p dir="auto">I’m running mapproxy-util with config below:</p>
<h2>mapproxy-util serve-develop -b 0.0.0.0:8080 mapproxy.yaml</h2>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">services:
demo:
tms:
use_grid_names: true
# origin for /tiles service
origin: 'sw'
kml:
use_grid_names: true
wmts:
wms:
md:
title: MapProxy WMS Proxy
abstract: This is a minimal MapProxy example.
layers:
- name: mapnik
title: Mapnik map
sources: [mapnik_cache]
caches:
mapnik_cache:
grids: [bng]
sources: [mapnik_source]
sources:
mapnik_source:
type: mapnik
mapfile: /home/renderer/src/openstreetmap-carto/mapnik.xml
#layers: mapnik
#transparent: true
grids:
bng:
srs: 'EPSG:27700'
bbox: [0, 0, 700000, 1300000]
bbox_srs: 'EPSG:27700'
origin: 'sw'
globals:
</code></pre>
<p dir="auto">I’m not sure if this is an error on my part in configuring MapProxy or an incompatibility between the versions of Mapnik/MapProxy (Mapnik 3.1.0 with the latest MapProxy).</p>
<p dir="auto">Any help would be much appreciated.<br>
-Phill</p>
</div>
</div>
</body>
</html>