From ebe7d6b336c97ec3e4608434e4075842c984fe0d Mon Sep 17 00:00:00 2001 From: nobohan Date: Sun, 25 Jun 2023 22:48:48 +0200 Subject: [PATCH] Cyclosm: move symbols folder --- docker-compose.yml | 1 - run.sh | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c6e7411..644a438 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,6 @@ services: - ./pbf/luxembourg-latest.osm.pbf:/data/region.osm.pbf # change here your pbf - ./pbf/luxembourg.poly:/data/region.poly # and your poly - ./pbf/shp/:/data/shp/ - #- ./pbf/simplified-land-polygons-complete-3857.zip:/data/simplified-land-polygons-complete-3857.zip ports: - "8080:80" command: "run" diff --git a/run.sh b/run.sh index 711e761..f957005 100755 --- a/run.sh +++ b/run.sh @@ -37,7 +37,12 @@ if [ "$1" == "import" ]; then cd /data/style/ git clone --single-branch --branch v0.6 https://github.com/cyclosm/cyclosm-cartocss-style.git --depth 1 - # carto build + mkdir /data/style/symbols/ + mv /data/style/cyclosm-cartocss-style/symbols/* /data/style/symbols/ + # change shp paths + sed -i "s,file: http://osmdata.openstreetmap.de/download,file: /data/shp,g" ./cyclosm-cartocss-style/project.mml + sed -i "s/.zip/.shp/g" ./cyclosm-cartocss-style/project.mml + # carto build carto cyclosm-cartocss-style/project.mml > mapnik.xml # Ensure that database directory is in right state @@ -131,6 +136,8 @@ if [ "$1" == "run" ]; then cd /data/style/ git clone --single-branch --branch v0.6 https://github.com/cyclosm/cyclosm-cartocss-style.git --depth 1 + mkdir /data/style/symbols/ + mv /data/style/cyclosm-cartocss-style/symbols/* /data/style/symbols/ # change shp paths sed -i "s,file: http://osmdata.openstreetmap.de/download,file: /data/shp,g" ./cyclosm-cartocss-style/project.mml sed -i "s/.zip/.shp/g" ./cyclosm-cartocss-style/project.mml