From f5c2022e7fe85fed079ee737f07527f48b2ea583 Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 26 Jun 2023 15:54:16 +0200 Subject: [PATCH] Cyclosm: add hillshade --- .gitignore | 1 + README.md | 8 ++++++++ docker-compose.yml | 1 + run.sh | 5 +++++ 4 files changed, 15 insertions(+) diff --git a/.gitignore b/.gitignore index cbcc048..b75fa78 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ pbf/*.pbf pbf/*.poly pbf/shp/* +pbf/*.tif tiles/* !tiles/.gitkeep database/* diff --git a/README.md b/README.md index a8f455a..288428e 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,14 @@ Download the 2 following zip files, unzip them, and place them in the `pbf/shp` Also, rename them as in the zip file, so simplified-land-polygons-complete-3857.shp and land-polygons-split-3857.shp. +##### Contour lines + +http://opendata.champs-libres.be/beautiful-contour-belgium.zip + +#### Hillshade + +Download the hillshade at http://opendata.champs-libres.be/hillshade_belgium_EPSG3857.zip and place the tif file in the pdf folder, as mounted in the `docker-compose.yml` file. + #### Do an import diff --git a/docker-compose.yml b/docker-compose.yml index 644a438..7b26a0c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,7 @@ 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/hillshade.tif:/data/hillshade.tif ports: - "8080:80" command: "run" diff --git a/run.sh b/run.sh index 4e5f32b..449fbe1 100755 --- a/run.sh +++ b/run.sh @@ -28,6 +28,11 @@ function compileStyle() { 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 + sed -i 's/*extents84/*extents/g' ./cyclosm-cartocss-style/project.mml + sed -i 's,dem/shade.vrt,/data/hillshade.tif,g' ./cyclosm-cartocss-style/project.mml + sed -z 's/status: off\n- id: contours100/status: on\n- id: contours100/' -i ./cyclosm-cartocss-style/project.mml + # carto build carto cyclosm-cartocss-style/project.mml > mapnik.xml }