Skip to content

Commit

Permalink
Rebase (#300)
Browse files Browse the repository at this point in the history
* Update load_fantoir.sh

Update Fantoir T2 2022

* Ajout dans le dico type_voie (#285)

* typo sur le nom de fichier des communes pour batch nocturne

Co-authored-by: deuzeffe <[email protected]>
  • Loading branch information
vdct and deuzeffe authored Oct 23, 2022
1 parent 47d4283 commit 3c7e251
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions bano/dictionnaires/abrev_type_voie.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ PETITE AVENUE PAE
PETITE ROUTE PRT
PETITE RUE PTR
ROND POINT RPT
RTE ROUTE RTE
RUE ALEZ ALEZ
RUE HENT HENT
RUE STRAED STRAED
Expand Down
4 changes: 2 additions & 2 deletions cron_bano.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ then
else
bano update_insee_lists
cat insee_locales.csv | parallel -j 4 export LANG=fr_FR.UTF-8\; bano process_commune BAL --code_insee {1}
cat insee_osm.txt | parallel -j 4 export LANG=fr_FR.UTF-8\; bano process_commune BAN --code_insee {1}
cat insee_osm.csv | parallel -j 4 export LANG=fr_FR.UTF-8\; bano process_commune BAN --code_insee {1}
cat insee_osm.csv | parallel -j 4 export LANG=fr_FR.UTF-8\; bano process_commune OSM --code_insee {1}
cat deplist.txt | parallel -j 4 export LANG=fr_FR.UTF-8\; bano process_commune_lieux-dits --depts {1}
fi
Expand Down Expand Up @@ -63,4 +63,4 @@ bano publish_aggregate
psql -d cadastre -U cadastre -c "VACUUM cumul_adresses;"
psql -d cadastre -U cadastre -c "VACUUM cumul_voies;"
psql -d cadastre -U cadastre -c "VACUUM cumul_places;"
psql -d cadastre -U cadastre -c "GRANT SELECT ON ALL TABLES IN SCHEMA PUBLIC TO PUBLIC";
psql -d cadastre -U cadastre -c "GRANT SELECT ON ALL TABLES IN SCHEMA PUBLIC TO PUBLIC";
2 changes: 1 addition & 1 deletion load_fantoir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd $DATA_DIR
mkdir -p fantoir
cd fantoir
rm -rf FANTOIR* && rm *.zip
wget https://data.economie.gouv.fr/api/datasets/1.0/fichier-fantoir-des-voies-et-lieux-dits/attachments/fichier_national_fantoir_situation_avril_2022_zip/ -O fantoir.zip
wget https://data.economie.gouv.fr/api/datasets/1.0/fichier-fantoir-des-voies-et-lieux-dits/attachments/fichier_national_fantoir_situation_juillet_2022_zip/ -O fantoir.zip
unzip fantoir.zip
mv FANTOIR* fantoir.txt
psql -d osm -U cadastre -f $BANO_DIR/sql/load_fantoir.sql
Expand Down

0 comments on commit 3c7e251

Please sign in to comment.