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 }