Correct error of owner on materialized views
This commit is contained in:
parent
a161cae48d
commit
b93f524413
@ -8,9 +8,10 @@ services:
|
||||
- ./database:/data/database/
|
||||
- ./tiles:/data/tiles/
|
||||
- ./oam/renderd.conf:/etc/renderd.conf
|
||||
- ./oam/alter_view_owner.sql:/data/alter_view_owner.sql
|
||||
- ./run.sh:/run.sh # for dev
|
||||
- ./pbf/luxembourg-latest.osm.pbf:/data/region.osm.pbf # change here your pbf
|
||||
- ./pbf/luxembourg.poly:/data/region.poly # and your poly
|
||||
- ./pbf/belgium-latest.osm.pbf:/data/region.osm.pbf # change here your pbf
|
||||
#- ./pbf/luxembourg.poly:/data/region.poly # and your poly -> not used
|
||||
- ./pbf/shp/:/data/shp/
|
||||
- ./pbf/hillshade.tif:/data/hillshade.tif
|
||||
ports:
|
||||
|
20
oam/alter_view_owner.sql
Normal file
20
oam/alter_view_owner.sql
Normal file
@ -0,0 +1,20 @@
|
||||
ALTER TABLE landuse OWNER TO renderer;
|
||||
ALTER TABLE train_elements OWNER TO renderer;
|
||||
ALTER TABLE places OWNER TO renderer;
|
||||
ALTER TABLE linear_features OWNER TO renderer;
|
||||
ALTER TABLE buildings OWNER TO renderer;
|
||||
ALTER TABLE cemeteries OWNER TO renderer;
|
||||
ALTER TABLE bridge_symbols OWNER TO renderer;
|
||||
ALTER TABLE landuse_overlays OWNER TO renderer;
|
||||
ALTER TABLE waters OWNER TO renderer;
|
||||
ALTER TABLE waterways OWNER TO renderer;
|
||||
ALTER TABLE boundaries OWNER TO renderer;
|
||||
ALTER TABLE tunnels OWNER TO renderer;
|
||||
ALTER TABLE bridges OWNER TO renderer;
|
||||
ALTER TABLE roads OWNER TO renderer;
|
||||
ALTER TABLE rotated_buildings OWNER TO renderer;
|
||||
ALTER TABLE trails OWNER TO renderer;
|
||||
ALTER TABLE point_features OWNER TO renderer;
|
||||
ALTER TABLE pitch OWNER TO renderer;
|
||||
ALTER TABLE landuse_label OWNER TO renderer;
|
||||
ALTER TABLE waterway_label OWNER TO renderer;
|
1
run.sh
1
run.sh
@ -129,6 +129,7 @@ if [ "$1" == "import" ]; then
|
||||
fi
|
||||
|
||||
sudo -u postgres psql -d gis -f /data/style/OpenArdenneMap/create_views.sql
|
||||
sudo -u postgres psql -d gis -f /data/alter_view_owner.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