OAM: mv symbols folder (img) and correct path for contour

This commit is contained in:
nobohan 2023-07-04 12:37:16 +02:00
parent ba14c03705
commit d8251d5dd7

12
run.sh
View File

@ -16,19 +16,15 @@ function compileStyle() {
cd /data/style/ cd /data/style/
git clone --single-branch --branch master https://github.com/nobohan/OpenArdenneMap.git --depth 1 git clone --single-branch --branch master https://github.com/nobohan/OpenArdenneMap.git --depth 1
# mv symbols folder # mv symbols folder
# mkdir /data/style/symbols/ mkdir /data/img/
# mv /data/style/cyclosm-cartocss-style/symbols/* /data/style/symbols/ mv /data/style/OpenArdenneMap/img/* /data/img/
# change dbname # change dbname
sed -i 's/"dbname": "osmpg_db",/"dbname": "gis",/g' ./OpenArdenneMap/osm2pgsql/project.mml sed -i 's/"dbname": "osmpg_db",/"dbname": "gis",/g' ./OpenArdenneMap/osm2pgsql/project.mml
# # remove some deprecated fonts # TODO add Alphabet font?
# sed -i 's/, "unifont Medium", "Unifont Upper Medium"//g' ./cyclosm-cartocss-style/fonts.mss
# sed -i 's/"Noto Sans Tibetan Regular",//g' ./cyclosm-cartocss-style/fonts.mss
# sed -i 's/"Noto Sans Tibetan Bold",//g' ./cyclosm-cartocss-style/fonts.mss
# sed -i 's/Noto Sans Syriac Eastern Regular/Noto Sans Syriac Regular/g' ./cyclosm-cartocss-style/fonts.mss
# change hillshade # change hillshade
sed -i 's,/mnt/tera/ChampsLibres/Projets/OSM/CyclOSM/hillshade/data/dem_be_10x10_hillshade_semi_transparent_3857.tif,/data/hillshade.tif,g' ./OpenArdenneMap/osm2pgsql/project.mml sed -i 's,/mnt/tera/ChampsLibres/Projets/OSM/CyclOSM/hillshade/data/dem_be_10x10_hillshade_semi_transparent_3857.tif,/data/hillshade.tif,g' ./OpenArdenneMap/osm2pgsql/project.mml
# change contours # change contours
sed -i 's,/../contour/beautiful_contour_belgium.shp,/data/shp/contours.shp,g' ./OpenArdenneMap/osm2pgsql/project.mml sed -i 's,../contour/beautiful_contour_belgium.shp,/data/shp/contours.shp,g' ./OpenArdenneMap/osm2pgsql/project.mml
# carto build # carto build
carto OpenArdenneMap/osm2pgsql/project.mml > mapnik.xml carto OpenArdenneMap/osm2pgsql/project.mml > mapnik.xml
} }