From ad784bbcaf3209d009afef07e80828d5d22536c3 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Sat, 2 Dec 2023 09:37:04 +0000 Subject: [PATCH] workaround for https://github.com/geofabrik/toner/issues/6 --- inc/styles/toner.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/styles/toner.sh b/inc/styles/toner.sh index b429fed..bfe450a 100644 --- a/inc/styles/toner.sh +++ b/inc/styles/toner.sh @@ -16,5 +16,11 @@ sed -e '/"name":/d' \ -e 's/# user:/ user:/g' -e 's/{{PGUSER}}/maposmatic/g' \ -e 's/# password:/ password:/g' -e 's/{{PGPASSWORD}}/secret/g' \ < toner.mml > osm.mml -carto --quiet --api $MAPNIK_VERSION_FOR_CARTO osm.mml > toner.xml + +carto --quiet --api $MAPNIK_VERSION_FOR_CARTO osm.mml \ +sed -e 's/adm0_a3/ADM0_A3/g' \ + -e 's/featurecla/FEATURECLA/g' \ + -e 's/scalerank/SCALERANK/g' \ + > toner.xml + php $FILEDIR/tools/postprocess-style.php toner.xml