osm-be: adapt repo and path + import command

This commit is contained in:
nobohan 2024-02-25 11:14:46 +01:00
parent d49c6be309
commit 92ef9c3f2e
2 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,7 @@ services:
- ./tiles:/data/tiles/ - ./tiles:/data/tiles/
- ./osmbe/renderd.conf:/etc/renderd.conf - ./osmbe/renderd.conf:/etc/renderd.conf
- ./run.sh:/run.sh # for dev - ./run.sh:/run.sh # for dev
- ./pbf/luxembourg-latest.osm.pbf:/data/region.osm.pbf # change here your pbf - ./pbf/belgium-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/hillshade.tif:/data/hillshade.tif - ./pbf/hillshade.tif:/data/hillshade.tif

7
run.sh
View File

@ -14,10 +14,9 @@ function setPostgresPassword() {
function compileStyle() { function compileStyle() {
cd /data/style/ cd /data/style/
git clone --single-branch --branch master https://github.com/osmbe/openstreetmap-carto-be/--depth 1 git clone --single-branch --branch update-2024 https://github.com/nobohan/openstreetmap-carto-be --depth 1
# TODO check if changes are needed as in cyclosm and oam # TODO check if changes are needed as in cyclosm and oam
# carto build TODO check paths carto openstreetmap-carto-be/project-fr.mml > mapnik.xml
carto project.mml > mapnik.xml
} }
@ -101,7 +100,7 @@ if [ "$1" == "import" ]; then
fi fi
# Import data TODO check the path and other options # Import data TODO check the path and other options
sudo -u renderer osm2pgsql -d gis --create --slim -G -S /openstreetmap-carto.style --extra-attributes \ sudo -u renderer osm2pgsql -d gis --create --hstore -G -S /openstreetmap-carto.style --tag-transform-script /openstreetmap-carto.lua \
/data/region.osm.pbf \ /data/region.osm.pbf \
${OSM2PGSQL_EXTRA_ARGS:-} \ ${OSM2PGSQL_EXTRA_ARGS:-} \
; ;