Skip to content

Commit

Permalink
workaround for geofabrik/toner#6
Browse files Browse the repository at this point in the history
  • Loading branch information
hholzgra committed Dec 2, 2023
1 parent 7dc4b91 commit ad784bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inc/styles/toner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ad784bb

Please sign in to comment.