mapcomplete/scripts/osm2pgsql/on_data_downloaded.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
317 B
Bash
Raw Normal View History

2024-03-28 10:37:58 +01:00
#! /bin/bash
cd ~/Downloads
for F in *.osm.pbf
do
LATEST="$F"
done
mv "$LATEST" ~/data/planet-latest.osm.pbf
cd ~/data
osm2pgsql -O flex -S build_db.lua -s --flat-nodes=import-help-file -d postgresql://user:password@localhost:5444/mapcomplete-cache planet-latest.osm.pbf
echo "on_data_downloaded.sh has finished!"