OAM: add script for creating sql views
This commit is contained in:
parent
bf4e6e42ec
commit
f43d913209
3
run.sh
3
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user