Skip to content

Commit

Permalink
Clear all tags on planet_osm_* tables after update (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie authored Apr 6, 2024
1 parent a509cad commit 9be2045
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions import/docker-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ update)

esac

# Clear all tags from the Osm2Psql tables
psql -d gis -c "update planet_osm_nodes set tags = null where tags is not null;"
psql -d gis -c "update planet_osm_ways set tags = null where tags is not null;"
psql -d gis -c "update planet_osm_rels set tags = null where tags is not null;"

echo "Post processing imported data"
psql -d gis -f sql/functions.sql
psql -d gis -f sql/get_station_importance.sql
Expand Down

0 comments on commit 9be2045

Please sign in to comment.