From f43d913209f4bd7a17b0ff59b41739919ecfe8f8 Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 14 Aug 2023 17:38:11 +0200 Subject: [PATCH] OAM: add script for creating sql views --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 759a2e7..2473ad1 100755 --- a/run.sh +++ b/run.sh @@ -22,7 +22,6 @@ function compileStyle() { cp /data/style/OpenArdenneMap/fonts/* /usr/share/fonts/ # change dbname sed -i 's/"dbname": "osmpg_db",/"dbname": "gis",/g' ./OpenArdenneMap/osm2pgsql/project.mml - # TODO add Alphabet font? # change hillshade sed -i 's,/mnt/tera/ChampsLibres/Projets/OSM/CyclOSM/hillshade/data/dem_be_10x10_hillshade_semi_transparent_3857.tif,/data/hillshade.tif,g' ./OpenArdenneMap/osm2pgsql/project.mml # change contours @@ -129,6 +128,8 @@ if [ "$1" == "import" ]; then sudo -u postgres psql -d gis -f /data/style/${NAME_SQL:-indexes.sql} fi + sudo -u postgres psql -d gis -f /data/style/OpenArdenneMap/create_views.sql + # Register that data has changed for mod_tile caching purposes sudo -u renderer touch /data/database/planet-import-complete