osm-be: adapt repo and path + import command
This commit is contained in:
parent
d49c6be309
commit
92ef9c3f2e
@ -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
|
||||
|
7
run.sh
7
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:-} \
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user