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
+3 -4
View File
@@ -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:-} \
;