Skip to content

Commit

Permalink
pg2datagouv-patch
Browse files Browse the repository at this point in the history
* Update 2021-08-31_pg2datagouv.md

* Complement mermaid
  • Loading branch information
igeofr authored Aug 31, 2021
1 parent 2c057dc commit 03097d4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions content/articles/2021/2021-08-31_pg2datagouv.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ graph TD;
G --> D;
U --> H{API};
R{Tâche CRON} --> |Lancer| A;
S(metadonnees.json) --> A;
H --> S;
A --> H;
M(composteurs.env) --> H;
H --> |Publier| X{Data.gouv.fr};
Expand Down Expand Up @@ -112,7 +114,9 @@ Dans le répertoire *scripts*, vous devez y placer un script Bash pour chaque do
Voici un exemple d'extraction des informations liées aux composteurs au format shapefile.

```bash
#- -----------------------------------------------------------------------------------------------------------
# Lecture du fichier de configuration
. ./config.env
# ------------------------------------------------------------------------------------------------------------
var_group=DECHETS
var_file=COMPOSTEURS
schema=dechet # Définir le schéma dans lequel se trouve la donnée
Expand All @@ -137,7 +141,7 @@ adresse,
-----------------------------------------
'Communauté de Communes ...' as source
-----------------------------------------
FROM composteurs WHERE ST_IsValid(GEOMETRY)"
FROM composteurs WHERE ST_IsValid(geom)"

# ------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 03097d4

Please sign in to comment.