Cyclosm: move symbols folder
This commit is contained in:
parent
0bbebc0f4a
commit
ebe7d6b336
@ -12,7 +12,6 @@ services:
|
|||||||
- ./pbf/luxembourg-latest.osm.pbf:/data/region.osm.pbf # change here your pbf
|
- ./pbf/luxembourg-latest.osm.pbf:/data/region.osm.pbf # change here your pbf
|
||||||
- ./pbf/luxembourg.poly:/data/region.poly # and your poly
|
- ./pbf/luxembourg.poly:/data/region.poly # and your poly
|
||||||
- ./pbf/shp/:/data/shp/
|
- ./pbf/shp/:/data/shp/
|
||||||
#- ./pbf/simplified-land-polygons-complete-3857.zip:/data/simplified-land-polygons-complete-3857.zip
|
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
command: "run"
|
command: "run"
|
||||||
|
7
run.sh
7
run.sh
@ -37,6 +37,11 @@ if [ "$1" == "import" ]; then
|
|||||||
|
|
||||||
cd /data/style/
|
cd /data/style/
|
||||||
git clone --single-branch --branch v0.6 https://github.com/cyclosm/cyclosm-cartocss-style.git --depth 1
|
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
|
||||||
# carto build
|
# carto build
|
||||||
carto cyclosm-cartocss-style/project.mml > mapnik.xml
|
carto cyclosm-cartocss-style/project.mml > mapnik.xml
|
||||||
|
|
||||||
@ -131,6 +136,8 @@ if [ "$1" == "run" ]; then
|
|||||||
|
|
||||||
cd /data/style/
|
cd /data/style/
|
||||||
git clone --single-branch --branch v0.6 https://github.com/cyclosm/cyclosm-cartocss-style.git --depth 1
|
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
|
# change shp paths
|
||||||
sed -i "s,file: http://osmdata.openstreetmap.de/download,file: /data/shp,g" ./cyclosm-cartocss-style/project.mml
|
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
|
sed -i "s/.zip/.shp/g" ./cyclosm-cartocss-style/project.mml
|
||||||
|
Loading…
Reference in New Issue
Block a user