-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inpn données non sensible & doc commande création csv
- Loading branch information
Showing
2 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Données INPN | ||
|
||
## Procédure de création d'un fichier csv destiné au module d'import | ||
|
||
- 1) rappatrier le fichier de données `Demande_4192.zip`. | ||
|
||
``` | ||
- St_Communes.csv | ||
- St_Descr.csv | ||
- St_Principal.csv | ||
- St_AttrAdd_Suj.csv | ||
- St_Departements.csv | ||
- St_Mailles.csv St_Regrp.csv | ||
- point.shp | ||
- ... | ||
- ligne.shp | ||
- ... | ||
- polygone.shp | ||
- ... | ||
- CA.xlsx | ||
- JDD.xlsx | ||
``` | ||
|
||
- 2) Le placer dans le dossier `<gn_modulator>/contrib/m_sipaf/data/sources/inpn` | ||
|
||
``` | ||
mv Demande_4192.zip <gn_modulator>/contrib/m_sipaf/data/sources/inpn/. | ||
``` | ||
|
||
- 3) Se placer dans le dossier `<gn_modulator>/contrib/m_sipaf/data/` et lancer la commande suivante | ||
|
||
|
||
``` | ||
./scripts/process_inpn.sh sources/inpn/Demande_4192.zip <GeoNature>/config/settings.ini | ||
``` | ||
|
||
le fichier settings.ini peut être le fichier de configuration de GeoNautre, mais peut aussi être un fichier contenant les accès à une base de données postgres. | ||
|
||
``` | ||
db_host=localhost | ||
db_port=5432 | ||
db_name=geonature | ||
user_pg=xxx | ||
user_pg_pass=xxx | ||
``` | ||
|
||
Le fichier csv est créer à l'emplacement `gn_modulator>/contrib/m_sipaf/data/processed/inpn/Demande_4192.csv` | ||
|
||
4) Refaire ce fichier | ||
|
||
On peut jouer sur le fichier [data/scripts/process_inpn.sql](../data/scripts/process_inpn.sql) pour changer les données (ajouter les données sensibles) | ||
|
||
Il faut supprimer le fichier `gn_modulator>/contrib/m_sipaf/data/processed/inpn/Demande_4192.csv` pour pouvoir le recréer avec la commande précédente. |
6df341d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci