diff options
| author | user <user@node5.net> | 2024-12-28 23:43:19 +0100 |
|---|---|---|
| committer | user <user@node5.net> | 2024-12-28 23:43:19 +0100 |
| commit | cb0d5d18c37293852ab6953939960da639afae0d (patch) | |
| tree | 672347edb59e0d4aea6c991e4b052ae122bd1384 /data_extractor | |
| parent | ac9954b8a881e9290a99fcd37ec3bbb1091dc87c (diff) | |
Data extractor - Denmark first
Diffstat (limited to 'data_extractor')
| -rw-r--r-- | data_extractor/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/data_extractor/Makefile b/data_extractor/Makefile index c896889..b9bbb1d 100644 --- a/data_extractor/Makefile +++ b/data_extractor/Makefile @@ -8,14 +8,14 @@ pbfs/denmark-latest.osm.pbf: cd pbfs && wget https://download.geofabrik.de/europe/denmark-latest.osm.pbf hamburg: pbfs/hamburg-latest.osm.pbf - # Load Hamburg, this resets DB - sudo -u postgres osm2pgsql -d map.node5.net -O flex -S data_extractor.lua pbfs/hamburg-latest.osm.pbf --slim + # Load Hamburg + # sudo -u postgres osm2pgsql -d map.node5.net -O flex -S data_extractor.lua pbfs/hamburg-latest.osm.pbf --slim --append sudo -u postgres psql -d map.node5.net -c "update poi set region = 'Hamburg' where region IS NULL;" sudo -u postgres psql -d map.node5.net -c "update poi set country = 'Germany' where country IS NULL;" denmark: - # Load Denmark - sudo -u postgres osm2pgsql -d map.node5.net -O flex -S data_extractor.lua pbfs/denmark-latest.osm.pbf --append --slim + # Load Denmark, this resets DB + sudo -u postgres osm2pgsql -d map.node5.net -O flex -S data_extractor.lua pbfs/denmark-latest.osm.pbf --slim sudo -u postgres psql -d map.node5.net -c "update poi set country = 'Denmark' where country IS NULL;" permission: @@ -31,6 +31,6 @@ db_shell: notify_desktop: notify-send "OSM processing" "done" -process_data: hamburg denmark count_per_country notify_desktop +process_data: denmark hamburg count_per_country notify_desktop .DEFAULT_GOAL := process_data |
