From 92ef9c3f2e2523e36e77c33c7a9e22aad271ab9b Mon Sep 17 00:00:00 2001 From: nobohan Date: Sun, 25 Feb 2024 11:14:46 +0100 Subject: [PATCH] osm-be: adapt repo and path + import command --- docker-compose.yml | 2 +- run.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 465ac17..9d8eb38 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: - ./tiles:/data/tiles/ - ./osmbe/renderd.conf:/etc/renderd.conf - ./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/shp/:/data/shp/ - ./pbf/hillshade.tif:/data/hillshade.tif diff --git a/run.sh b/run.sh index d853e1a..b12fb11 100755 --- a/run.sh +++ b/run.sh @@ -14,10 +14,9 @@ function setPostgresPassword() { function compileStyle() { 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 - # carto build TODO check paths - carto project.mml > mapnik.xml + carto openstreetmap-carto-be/project-fr.mml > mapnik.xml } @@ -101,7 +100,7 @@ if [ "$1" == "import" ]; then fi # 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 \ ${OSM2PGSQL_EXTRA_ARGS:-} \ ;