Compare commits

...
+12 -11
View File
@@ -15,7 +15,7 @@ function setPostgresPassword() {
function compileStyle() {
local lang="${1:-}"
cd /data/style/
git clone --single-branch --branch v6.0.0 https://github.com/osmbe/openstreetmap-carto-be --depth 1
git clone --single-branch --branch update-2025 https://github.com/nobohan/openstreetmap-carto-be --depth 1
mkdir /data/style/patterns/
mv /data/style/openstreetmap-carto-be/patterns/* /data/style/patterns/
mkdir /data/style/symbols/
@@ -116,7 +116,7 @@ if [ "$1" == "import" ]; then
fi
# Import data
sudo -u renderer osm2pgsql -d gis --create -O flex -S openstreetmap-carto-be/openstreetmap-carto-flex.lua \
sudo -u renderer osm2pgsql -d gis --create --hstore -G -S openstreetmap-carto-be/openstreetmap-carto.style --tag-transform-script openstreetmap-carto-be/openstreetmap-carto.lua \
/data/region.osm.pbf \
${OSM2PGSQL_EXTRA_ARGS:-} \
;
@@ -150,7 +150,7 @@ if [ "$1" == "run" ]; then
# Clean /tmp
rm -rf /tmp/*
if [ -z "$2" ]; then
if [ "$#" -gt 1 ]; then
compileStyle $2
else
compileStyle
@@ -220,7 +220,7 @@ fi
if [ "$1" == "generate_tiles" ]; then
if [ -z "$2" ]; then
if [ "$#" -gt 1 ]; then
compileStyle $2
else
compileStyle
@@ -231,15 +231,16 @@ if [ "$1" == "generate_tiles" ]; then
sudo -u renderer renderd -c /etc/renderd.conf
if [ -z "$2" ]; then
if [ "$#" -gt 1 ]; then
render_list --map osmbe_${$2} -n 36 --min-zoom=0 --max-zoom=7 --all
cat /data/tiles/osmbe/tiles.list | render_list --map osmbe_${$2} -n 36
bash
else
render_list --map osmbe -n 36 --min-zoom=0 --max-zoom=7 --all
cat /data/tiles/osmbe/tiles.list | render_list --map osmbe -n 36
bash
render_list --map osmbe_${$2} -n 36 --min-zoom=0 --max-zoom=7 --all
cat /data/tiles/osmbe/tiles.list | render_list --map osmbe_${$2} -n 36
bash
fi
fi
echo "invalid command"
exit 1
# echo "invalid command"
# exit 1