diff --git a/docker-compose.yml b/docker-compose.yml index 572784a..3182144 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/oam/alter_view_owner.sql b/oam/alter_view_owner.sql new file mode 100644 index 0000000..a36278f --- /dev/null +++ b/oam/alter_view_owner.sql @@ -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; \ No newline at end of file diff --git a/run.sh b/run.sh index 2473ad1..dfbd3fc 100755 --- a/run.sh +++ b/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