Skip to content

Commit

Permalink
Run scripts from project dir
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Feb 22, 2023
1 parent ad7ce15 commit 59470c7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ sudo -u postgres -s "./create_base.sh"

## Chargement des données OSM

Se placer dans le répertoire `DATA_DIR`, et appeler les scripts depuis là.

Charger des données OSM depuis un pbf, France entière ou un extract plus petit.
```
load_osm_france_db.sh
Expand Down
3 changes: 1 addition & 2 deletions copy_table_from_osm_to_cadastre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $SCRIPT_DIR/config
source config

set -e

Expand Down
3 changes: 1 addition & 2 deletions load_osm_france_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $SCRIPT_DIR/config
source config

PBF_URL=${1:-http://download.openstreetmap.fr/extracts/merge/france_metro_dom_com_nc.osm.pbf}
PBF_FILE=$(basename "$PBF_URL")
Expand Down
3 changes: 1 addition & 2 deletions update_table_infos_communes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

set -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR
source config

$pgsql_OSM -f ./sql/update_table_infos_communes.sql

0 comments on commit 59470c7

Please sign in to comment.