diff --git a/scripts/backup_umap.sh b/scripts/backup_umap.sh
deleted file mode 100755
index cc07cf7..0000000
--- a/scripts/backup_umap.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/bash
-
-cd /data/www/vhosts/ar-redadeg_openstreetmap_bzh/htdocs/scripts/backup/
-#cd backup/
-
-# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-# on récupère les couches geojson depuis umap pour sauvegarde au cas où
-
-# carte phase 1
-# le tracé manuel
-#curl -sS http://umap.openstreetmap.fr/fr/datalayer/746021/ > "phase_1/$(date +%Y%m%d)_$(date +%H%M)_phase_1_trace.geojson"
-# PK VIP
-#curl -sS http://umap.openstreetmap.fr/fr/datalayer/715179/ > "phase_1/$(date +%Y%m%d)_$(date +%H%M)_phase_1_pk_vip.geojson"
-
-
-# carte phase 2
-# PK secteur
-#curl -sS http://umap.openstreetmap.fr/fr/datalayer/817220/ > "phase_2/$(date +%Y%m%d)_$(date +%H%M)_phase_2_pk_secteur.geojson"
-# PK technique / PK tecknikel
-#curl -sS http://umap.openstreetmap.fr/fr/datalayer/817221/ > "phase_2/$(date +%Y%m%d)_$(date +%H%M)_phase_2_pk_techniques.geojson"
-# points coupe tracé
-#curl -sS http://umap.openstreetmap.fr/fr/datalayer/861810/ > "phase_2/$(date +%Y%m%d)_$(date +%H%M)_phase_2_points_coupe_trace.geoson"
-
-
-# on remonte d'un niveau ceux cd 06h 13h et 18h
-
-# si le nom du fichier matche le motif regexp
-# on copie le fichier dans un autre répertoire
-
-# for f in jour_courant/*.geojson
-# do
-# #if [[ $f =~ [0-9]{8}_(0600|1300|1800)_* ]]
-# if [[ $f =~ [0-9]{8}_(1200)_* ]]
-# then cp $f ./
-# fi
-# done
-
-
-# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-# cartes phase 5
-
-# on sauvegarde les couches de PK gérés manuellement par secteurs
-# secteur 1
-curl -sS http://umap.openstreetmap.fr/fr/datalayer/1027042/ > "phase_5/phase_5_pk_secteur_01_$(date +%Y%m%d)_$(date +%H%M).geojson"
-# secteur 2
-curl -sS http://umap.openstreetmap.fr/fr/datalayer/1027081/ > "phase_5/phase_5_pk_secteur_02_$(date +%Y%m%d)_$(date +%H%M).geojson"
-# secteur 3
-curl -sS http://umap.openstreetmap.fr/fr/datalayer/1027101/ > "phase_5/phase_5_pk_secteur_03_$(date +%Y%m%d)_$(date +%H%M).geojson"
-# secteur 4
-curl -sS http://umap.openstreetmap.fr/fr/datalayer/1027104/ > "phase_5/phase_5_pk_secteur_04_$(date +%Y%m%d)_$(date +%H%M).geojson"
-# secteur 5
-curl -sS http://umap.openstreetmap.fr/fr/datalayer/1027107/ > "phase_5/phase_5_pk_secteur_05_$(date +%Y%m%d)_$(date +%H%M).geojson"
-# secteur 6
-curl -sS http://umap.openstreetmap.fr/fr/datalayer/1027110/ > "phase_5/phase_5_pk_secteur_06_$(date +%Y%m%d)_$(date +%H%M).geojson"
-# secteur 7
-curl -sS http://umap.openstreetmap.fr/fr/datalayer/1027114/ > "phase_5/phase_5_pk_secteur_07_$(date +%Y%m%d)_$(date +%H%M).geojson"
-# secteur 8
-curl -sS http://umap.openstreetmap.fr/fr/datalayer/1027117/ > "phase_5/phase_5_pk_secteur_08_$(date +%Y%m%d)_$(date +%H%M).geojson"
-# secteur 9
-curl -sS http://umap.openstreetmap.fr/fr/datalayer/1027120/ > "phase_5/phase_5_pk_secteur_09_$(date +%Y%m%d)_$(date +%H%M).geojson"
-# secteur 10
-curl -sS http://umap.openstreetmap.fr/fr/datalayer/1027123/ > "phase_5/phase_5_pk_secteur_10_$(date +%Y%m%d)_$(date +%H%M).geojson"
-
-
-# la couche des PK assemblés
-cp ../data/phase_5_pk.geojson "phase_5/phase_5_pk_$(date +%Y%m%d)_$(date +%H%M).geojson"
-
-
-
-
diff --git a/scripts/config.ini b/scripts/config.ini
deleted file mode 100644
index 7238462..0000000
--- a/scripts/config.ini
+++ /dev/null
@@ -1,8 +0,0 @@
-
-[pg_redadeg]
-host = bed110.bedniverel.bzh
-port = 55432
-db = redadeg
-schema = public
-user = redadeg
-passwd = redadeg
diff --git a/scripts/create_database.sh b/scripts/create_database.sh
deleted file mode 100755
index 01f32ce..0000000
--- a/scripts/create_database.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-# exit dès que qqch se passe mal
-#set -e
-# ?
-set -u
-
-# utiliser un compte SUPERUSER pour exécuter ce script
-
-# argument 1 = millesime redadeg
-millesime=$1
-
-PSQL=/usr/bin/psql
-DB_HOST=localhost
-DB_NAME=redadeg_$millesime
-
-
-
-echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
-echo " Création de la base de données $DB_NAME"
-echo ""
-echo ""
-
-
-echo "La base de données $DB_NAME va être supprimée !!"
-
-if [ ! -t 0 ]; then x-terminal-emulator -e "$0"; exit 0; fi
-read -r -p "Appuyer sur n'importe quelle touche pour continuer..." key
-
-# suppression de la base de données existantes
-echo "DROP DATABASE $DB_NAME ;" | psql -U postgres -w
-
-# create role
-psql -h $DB_HOST -d postgres -c "CREATE USER redadeg WITH PASSWORD 'redadeg' SUPERUSER;"
-
-# create database with owner redadeg
-psql -h $DB_HOST -d postgres -c "CREATE DATABASE $DB_NAME WITH OWNER = redadeg ENCODING = 'UTF8';"
-
-# extensions postgis
-psql -h $DB_HOST -d $DB_NAME -c "CREATE EXTENSION postgis;"
-psql -h $DB_HOST -d $DB_NAME -c "CREATE EXTENSION postgis_topology;"
-psql -h $DB_HOST -d $DB_NAME -c "CREATE EXTENSION pgrouting;"
-
-# permissions
-psql -h $DB_HOST -d $DB_NAME -c "ALTER SCHEMA public OWNER TO redadeg;"
-psql -h $DB_HOST -d $DB_NAME -c "ALTER TABLE topology.layer OWNER TO redadeg ;"
-psql -h $DB_HOST -d $DB_NAME -c "ALTER TABLE topology.topology OWNER TO redadeg ;"
-
-# vérifications
-psql -h $DB_HOST -d $DB_NAME -c "SELECT * FROM postgis_version();"
-psql -h $DB_HOST -d $DB_NAME -c "SELECT * FROM pgr_version();"
-
diff --git a/scripts/create_osm_roads.sh b/scripts/create_osm_roads.sh
deleted file mode 100755
index 5104f6c..0000000
--- a/scripts/create_osm_roads.sh
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/bin/bash
-
-set -e
-set -u
-
-# argument 1 = millesime redadeg
-millesime=$1
-
-echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
-echo " Création de la couche osm_roads"
-echo ""
-echo ""
-
-PSQL=/usr/bin/psql
-HOST_DB_redadeg=localhost
-HOST_DB_osm=localhost
-DB_REDADEG=redadeg_$millesime
-DB_OSM=osm
-DB_USER=redadeg
-DB_PASSWD=redadeg
-
-rep_scripts='/data/projets/ar_redadeg/scripts/'
-echo "rep_scripts = $rep_scripts"
-# variables liées au millésimes
-echo "millesime de travail = $1"
-rep_data=../data/$millesime
-echo "rep_data = $rep_data"
-
-echo ""
-echo "import phase_1_trace dans la base OSM"
-echo ""
-
-# 1. export du tracé phase 1 depuis la base redadeg
-pg_dump --dbname=postgresql://$DB_USER:$DB_PASSWD@$HOST_DB_redadeg/$DB_REDADEG \
- --format=p --no-owner --section=pre-data --section=data --no-privileges --no-tablespaces --no-unlogged-table-data --no-comments \
- --table phase_1_trace \
- --file $rep_data/redadeg_trace.sql
-
-
-# 2. import dans la base OSM
-PGPASSWORD=$DB_PASSWD $PSQL -h $HOST_DB_osm -U $DB_USER -d $DB_OSM -c "DROP TABLE IF EXISTS phase_1_trace_$millesime ;"
-PGPASSWORD=$DB_PASSWD $PSQL -h $HOST_DB_osm -U $DB_USER -d $DB_OSM < $rep_data/redadeg_trace.sql
-PGPASSWORD=$DB_PASSWD $PSQL -h $HOST_DB_osm -U $DB_USER -d $DB_OSM -c "ALTER TABLE phase_1_trace RENAME TO phase_1_trace_$millesime ;"
-
-echo ""
-echo "fait"
-echo ""
-
-
-# 3. calcul de la couche osm_roads = intersection buffer trace et routes OSM
-
-echo ">> calcul de la couche osm_roads"
-echo ""
-
-# on supprime puis on recrée la table
-PGPASSWORD=$DB_PASSWD $PSQL -h $HOST_DB_osm -U $DB_USER -d $DB_OSM -c "DROP TABLE IF EXISTS osm_roads_$millesime ;"
-PGPASSWORD=$DB_PASSWD $PSQL -h $HOST_DB_osm -U $DB_USER -d $DB_OSM -c "
-CREATE TABLE osm_roads_$millesime
-(
- uid bigint NOT NULL,
- osm_id bigint,
- highway text,
- type text,
- oneway text,
- ref text,
- name_fr text,
- name_br text,
- the_geom geometry,
- CONSTRAINT osm_roads_pkey PRIMARY KEY (uid),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);"
-
-echo ""
-echo " table osm_roads_$millesime créée"
-echo ""
-echo " extraction du filaire de voies OSM le long du tracé fourni"
-echo ""
-
-PGPASSWORD=$DB_PASSWD $PSQL -h $HOST_DB_osm -U $DB_USER -d $DB_OSM -c "WITH trace_buffer AS (
- SELECT
- secteur_id,
- ST_Union(ST_Buffer(the_geom, 25, 'quad_segs=2')) AS the_geom
- FROM phase_1_trace_$millesime
- GROUP BY secteur_id
- ORDER BY secteur_id
-)
-INSERT INTO osm_roads_$millesime
-(
- SELECT
- row_number() over() as id,
- osm_id,
- highway,
- CASE
- WHEN highway IN ('motorway', 'trunk') THEN 'motorway'
- WHEN highway IN ('primary', 'secondary') THEN 'mainroad'
- WHEN highway IN ('motorway_link', 'trunk_link', 'primary_link', 'secondary_link', 'tertiary', 'tertiary_link', 'residential', 'unclassified', 'road', 'living_street') THEN 'minorroad'
- WHEN highway IN ('service', 'track') THEN 'service'
- WHEN highway IN ('path', 'cycleway', 'footway', 'pedestrian', 'steps', 'bridleway') THEN 'noauto'
- ELSE 'other'
- END AS type,
- oneway,
- ref,
- name AS name_fr,
- COALESCE(tags -> 'name:br'::text) as name_br,
- ST_Intersection(ST_Transform(o.way,2154), t.the_geom) AS the_geom
- FROM planet_osm_line o, trace_buffer t
- WHERE highway IS NOT NULL AND ST_INTERSECTS(t.the_geom, ST_Transform(o.way,2154))
-) ;"
-
-echo ""
-echo "fait"
-echo ""
-
-
-# 4. export de osm_roads depuis la base OSM
-
-echo "transfert de osm_roads_$millesime depuis la base OSM vers la base redadeg"
-echo ""
-
-pg_dump --dbname=postgresql://$DB_USER:$DB_PASSWD@$HOST_DB_osm/$DB_OSM \
- --format=p --no-owner --section=pre-data --section=data --no-privileges --no-tablespaces --no-unlogged-table-data --no-comments \
- --table osm_roads_$millesime \
- --file $rep_data/osm_roads.sql
-
-# 5. import dans la base redadeg
-PGPASSWORD=$DB_PASSWD $PSQL -h $HOST_DB_redadeg -U $DB_USER -d $DB_REDADEG -c "DROP TABLE IF EXISTS osm_roads;"
-PGPASSWORD=$DB_PASSWD $PSQL -h $HOST_DB_redadeg -U $DB_USER -d $DB_REDADEG < $rep_data/osm_roads.sql
-PGPASSWORD=$DB_PASSWD $PSQL -h $HOST_DB_redadeg -U $DB_USER -d $DB_REDADEG -c "ALTER TABLE osm_roads_$millesime RENAME TO osm_roads ;"
-
-echo ""
-echo "fait"
-echo ""
-
-echo "fini"
-
diff --git a/scripts/create_osm_roads.sql b/scripts/create_osm_roads.sql
deleted file mode 100644
index 8a8f66d..0000000
--- a/scripts/create_osm_roads.sql
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
-==========================================================================
-
- OpenStreetMap : création de la couche du réseau routier OSM
- pour le calcul d'itinéraires
-
-==========================================================================
-*/
-
--- A faire dans une base OSM contenant un import osm2pgsql
-
--- Le but est de créer une table osm_roads qui contiendra
--- le réseau routier dans une zone-tampon de 500 autour du tracé.
-
--- on fait ça dans une base à part à cause de la volumétrie des données OSM
-
-
-
--- 1. import du tracé dans la base OSM
-
--- export du tracé depuis la base redadeg
--- pg_dump --file redadeg_trace.sql --host localhost --username redadeg --no-password --format=p --no-owner --section=pre-data --section=data --no-privileges --no-tablespaces --no-unlogged-table-data --no-comments --table public.phase_1_trace redadeg
-
--- import dans la base osm
--- psql -U osmbr -d osm -c "DROP TABLE public.phase_1_trace;"
--- psql -U osmbr -d osm < redadeg_trace.sql
-
-
-
-
--- 2. création de la table qui va accueillir les tronçons de routes
-
--- la table qui contient le graphe routier de OSM
-DROP TABLE IF EXISTS osm_roads ;
-CREATE TABLE osm_roads
-(
- uid bigint,
- osm_id bigint,
- highway text,
- type text,
- oneway text,
- ref text,
- name_fr text,
- name_br text,
- the_geom geometry,
- CONSTRAINT osm_roads_pkey PRIMARY KEY (uid),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-
-
-
--- 3. remplissage de la table à l'aide d'un requête
--- qui va faire un buffer de 25 m autour du tracé
--- environ 5 min de traitement
-
-TRUNCATE TABLE osm_roads ;
-WITH trace_buffer AS (
- SELECT
- secteur_id,
- ST_Union(ST_Buffer(the_geom, 25, 'quad_segs=2')) AS the_geom
- FROM phase_1_trace
- GROUP BY secteur_id
- ORDER BY secteur_id
-)
-INSERT INTO osm_roads
-(
- SELECT
- row_number() over() as id,
- osm_id,
- highway,
- CASE
- WHEN highway IN ('motorway', 'trunk') THEN 'motorway'
- WHEN highway IN ('primary', 'secondary') THEN 'mainroad'
- WHEN highway IN ('motorway_link', 'trunk_link', 'primary_link', 'secondary_link', 'tertiary', 'tertiary_link', 'residential', 'unclassified', 'road', 'living_street') THEN 'minorroad'
- WHEN highway IN ('service', 'track') THEN 'service'
- WHEN highway IN ('path', 'cycleway', 'footway', 'pedestrian', 'steps', 'bridleway') THEN 'noauto'
- ELSE 'other'
- END AS type,
- oneway,
- ref,
- name AS name_fr,
- COALESCE(tags -> 'name:br'::text) as name_br,
- ST_Intersection(ST_Transform(o.way,2154), t.the_geom) AS the_geom
- FROM planet_osm_line o, trace_buffer t
- WHERE highway IS NOT NULL AND ST_INTERSECTS(t.the_geom, ST_Transform(o.way,2154))
-) ;
-
-
--- 4. on l'exporte pour la recharger dans la base redadeg
-
--- commande d'export
--- pg_dump --file osm_roads.sql --host localhost --username osmbr --no-password --format=p --no-owner --section=pre-data --section=data --no-privileges --no-tablespaces --no-unlogged-table-data --no-comments --table public.osm_roads osm
-
--- commande d'import
--- psql -U redadeg -d redadeg -c "DROP TABLE public.osm_roads;"
--- psql -U redadeg -d redadeg < osm_roads.sql
-
-
-
-
diff --git a/scripts/create_osm_roads_pgr.sh b/scripts/create_osm_roads_pgr.sh
deleted file mode 100755
index 18460a3..0000000
--- a/scripts/create_osm_roads_pgr.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-set -e
-set -u
-
-# argument 1 = millesime redadeg
-millesime=$1
-
-PSQL=/usr/bin/psql
-DB_HOST=localhost
-DB_NAME=redadeg_$millesime
-DB_USER=redadeg
-DB_PASSWD=redadeg
-
-
-echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
-echo " Création de la couche osm_roads_pgr"
-echo ""
-echo ""
-
-# suppose le le .pgpass est correctement configuré pour le compte qui lance ce script
-
-
-echo ">> suppression de la topologie existante"
-echo ""
-$PSQL -h $DB_HOST -U $DB_USER -d $DB_NAME -c "SELECT DropTopology('osm_roads_topo') ;" || true
-echo ""
-
-# création d'un schéma qui va accueillir le réseau topologique de la couche osm_roads
-echo ">> création d'une nouvelle topologie"
-echo ""
-$PSQL -h $DB_HOST -U $DB_USER -d $DB_NAME -c "SELECT topology.CreateTopology('osm_roads_topo', 2154);"
-
-
-echo ">> ajout d'un nouvel attribut sur la table osm_roads"
-echo ""
-$PSQL -h $DB_HOST -U $DB_USER -d $DB_NAME -c "SELECT topology.AddTopoGeometryColumn('osm_roads_topo', 'public', 'osm_roads', 'topo_geom', 'LINESTRING');"
-echo ""
-echo "fait"
-echo ""
-
-
-echo "fini >> exécuter update_osm_roads_pgr.sh "
-echo ""
diff --git a/scripts/create_tables.sh b/scripts/create_tables.sh
deleted file mode 100755
index 294d819..0000000
--- a/scripts/create_tables.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-set -e
-set -u
-
-# argument 1 = millesime redadeg
-millesime=$1
-
-PSQL=/usr/bin/psql
-DB_HOST=localhost
-DB_NAME=redadeg_$millesime
-DB_USER=redadeg
-DB_PASSWD=redadeg
-
-
-echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
-echo " Création des tables dans la base de données $DB_NAME"
-echo ""
-echo ""
-
-# suppression d'abord
-psql -h $DB_HOST -U redadeg -d $DB_NAME < drop_tables.sql
-
-# création
-psql -h $DB_HOST -U redadeg -d $DB_NAME < create_tables.sql
-
-# initialisation de la table de référence des secteurs pour le millésime
-psql -h $DB_HOST -U redadeg -d $DB_NAME < ../data/$millesime/update_infos_secteurs.sql
-
diff --git a/scripts/create_tables.sql b/scripts/create_tables.sql
deleted file mode 100644
index 8f50525..0000000
--- a/scripts/create_tables.sql
+++ /dev/null
@@ -1,755 +0,0 @@
-
-
-/*
-==========================================================================
-
- phase 1 : récupération des données depuis umap et calcul des PK auto
-
-==========================================================================
-*/
-
--- voir la documentation pour la création de la base de données
-
--- on est obligé de créer des tables en Lambert 93 (EPSG:2154) (ou une CC conforme)
--- car même si les tables originales sont déclarées en 3857
--- en fait les géoémtries sont en 4326
--- donc les calculs de longueur sont faux
--- au moins en créant une table en dur en Lambert 93 / 2154 on est sûr des longueurs
-
-
--- la table secteur gère les grands découpage de gestion
-DROP TABLE IF EXISTS secteur CASCADE ;
-CREATE TABLE secteur
-(
- id integer,
- nom_br text,
- nom_fr text,
- objectif_km integer,
- km_redadeg integer
-);
-
-ALTER TABLE secteur OWNER to redadeg;
-
-
-
-DROP TABLE IF EXISTS phase_1_trace_3857 ;
-CREATE TABLE phase_1_trace_3857
-(
- fake_column integer
-);
-ALTER TABLE phase_1_trace_3857 OWNER to redadeg;
-
-DROP TABLE IF EXISTS phase_1_pk_vip_3857 ;
-CREATE TABLE phase_1_pk_vip_3857
-(
- fake_column integer
-);
-ALTER TABLE phase_1_pk_vip_3857 OWNER to redadeg;
-
-
-
-DROP TABLE IF EXISTS phase_1_trace CASCADE ;
-CREATE TABLE phase_1_trace
-(
- ogc_fid integer,
- secteur_id int,
- ordre int,
- longueur numeric,
- the_geom geometry(LineString,2154),
- CONSTRAINT phase_1_trace_pkey PRIMARY KEY (ogc_fid),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_1_trace OWNER to redadeg;
-
-
-DROP TABLE IF EXISTS phase_1_pk_vip CASCADE ;
-CREATE TABLE phase_1_pk_vip
-(
- ogc_fid integer,
- name text,
- description text,
- the_geom geometry(Point,2154),
- CONSTRAINT phase_1_pk_vip_pkey PRIMARY KEY (ogc_fid),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_1_pk_vip OWNER to redadeg;
-
-
--- on crée aussi une version correcte en 4326 pour export vers umap
-DROP TABLE IF EXISTS phase_1_trace_4326 ;
-CREATE TABLE phase_1_trace_4326
-(
- ogc_fid integer,
- name text, -- = section_nom
- secteur_id int,
- ordre int,
- longueur numeric,
- the_geom geometry(LineString,4326),
- CONSTRAINT phase_1_trace_4326_pkey PRIMARY KEY (ogc_fid),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 4326)
-);
-ALTER TABLE phase_1_trace_4326 OWNER to redadeg;
-
-
--- table des tronçons créés à partir des longs tracés
-DROP TABLE IF EXISTS phase_1_trace_troncons CASCADE ;
-CREATE TABLE phase_1_trace_troncons
-(
- uid bigint,
- secteur_id int,
- ordre bigint,
- km bigint,
- km_reel bigint,
- longueur integer,
- the_geom geometry(LineString,2154),
- CONSTRAINT phase_1_trace_troncons_pkey PRIMARY KEY (uid),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_1_trace_troncons OWNER to redadeg;
-
-
-
--- vue des PK auto en fin de tronçon
-DROP VIEW IF EXISTS phase_1_pk_auto ;
-CREATE VIEW phase_1_pk_auto AS
- SELECT
- uid, secteur_id, ordre, km, km_reel,
- ST_Line_Interpolate_Point(the_geom, 1)::geometry(Point, 2154) AS the_geom
- FROM phase_1_trace_troncons
- ORDER BY secteur_id ASC, ordre ASC, km ASC ;
-ALTER TABLE phase_1_pk_auto OWNER to redadeg;
-
--- la même mais en 4326 pour export
-DROP VIEW IF EXISTS phase_1_pk_auto_4326 ;
-CREATE VIEW phase_1_pk_auto_4326 AS
- SELECT
- uid, secteur_id, ordre, km, km_reel,
- ST_Transform(the_geom,4326)::geometry(Point, 4326) AS the_geom
- FROM phase_1_pk_auto
- ORDER BY secteur_id ASC, ordre ASC, km ASC ;
-ALTER TABLE phase_1_pk_auto_4326 OWNER to redadeg;
-
--- vue tableau de bord de synthèse
-DROP VIEW IF EXISTS phase_1_tdb ;
-CREATE VIEW phase_1_tdb AS
- SELECT
- t.secteur_id, s.nom_br, s.nom_fr,
- TRUNC( SUM(t.longueur)::numeric , 3) AS longueur_km,
- ROUND( SUM(t.longueur)::numeric ) AS longueur_km_arrondi
- FROM phase_1_trace t JOIN secteur s ON t.secteur_id = s.id
- GROUP BY secteur_id, nom_br, nom_fr
- ORDER BY secteur_id ;
-ALTER TABLE phase_1_tdb OWNER to redadeg;
-
-
-
-
-/*
-==========================================================================
-
- phase 2 : calcul d'itinéraires en appui du réseau routier OSM
-
-==========================================================================
-*/
-
--- les couches PK venant de umap
-
-DROP TABLE IF EXISTS phase_2_pk_secteur_3857 ;
-CREATE TABLE phase_2_pk_secteur_3857
-(
- fake_column integer
-);
-ALTER TABLE phase_2_pk_secteur_3857 OWNER to redadeg;
-
-DROP TABLE IF EXISTS phase_2_point_nettoyage_3857 ;
-CREATE TABLE phase_2_point_nettoyage_3857
-(
- fake_column integer
-);
-ALTER TABLE phase_2_point_nettoyage_3857 OWNER to redadeg;
-
-
-DROP TABLE IF EXISTS phase_2_pk_secteur CASCADE ;
-CREATE TABLE phase_2_pk_secteur
-(
- id integer,
- name text,
- pgr_node_id integer,
- secteur_id integer,
- the_geom geometry(Point,2154),
- CONSTRAINT phase_2_pk_secteur_pkey PRIMARY KEY (id),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_2_pk_secteur OWNER to redadeg;
-
-
--- une vue en 4326 pour export
-DROP VIEW IF EXISTS phase_2_pk_secteur_4326 CASCADE ;
-CREATE VIEW phase_2_pk_secteur_4326 AS
- SELECT
- pk.id, pk.name, s.id AS secteur_id, replace(s.nom_fr,' ','') AS nom_fr, replace(s.nom_br,' ','') AS nom_br,
- ST_Transform(pk.the_geom,4326)::geometry(Point, 4326) AS the_geom
- FROM phase_2_pk_secteur pk JOIN secteur s ON pk.id = s.id
- ORDER BY pk.id ;
-ALTER TABLE phase_2_pk_secteur_4326 OWNER to redadeg;
-
-
--- les polygones des communes source OSM France
-DROP TABLE IF EXISTS osm_communes CASCADE ;
-CREATE TABLE osm_communes
-(
- gid serial,
- insee character varying(80),
- nom character varying(80),
- wikipedia character varying(80),
- surf_ha numeric,
- the_geom geometry,
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POLYGON'::text OR geometrytype(the_geom) = 'MULTIPOLYGON'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154),
- CONSTRAINT osm_communes_pkey PRIMARY KEY (gid)
-);
-CREATE INDEX osm_communes_geom_idx ON osm_communes USING gist(the_geom);
-ALTER TABLE osm_communes OWNER to redadeg;
-
-
--- la couche avec les info langue minoritaire
-DROP TABLE IF EXISTS osm_municipalities CASCADE ;
-CREATE TABLE osm_municipalities
-(
- id serial,
- osm_id bigint,
- type text,
- admin_level text,
- name text,
- name_fr text,
- name_br text,
- source_name_br text,
- admincode text,
- postcode text,
- wikidata text,
- surf_ha numeric,
- x numeric,
- y numeric,
- the_geom geometry,
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POLYGON'::text OR geometrytype(the_geom) = 'MULTIPOLYGON'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154),
- CONSTRAINT osm_municipalities_pkey PRIMARY KEY (id)
-);
-CREATE INDEX osm_municipalities_geom_idx ON osm_municipalities USING gist(the_geom);
-CREATE INDEX osm_municipalities_admincode_idx ON osm_municipalities(admincode);
-ALTER TABLE osm_municipalities OWNER to redadeg;
-
-
-
-
-
--- la couche qui contient les lignes des routes venant de OSM
-DROP TABLE IF EXISTS osm_roads CASCADE ;
-CREATE TABLE osm_roads
-(
- uid bigint NOT NULL,
- osm_id bigint,
- highway text,
- type text,
- oneway text,
- ref text,
- name_fr text,
- name_br text,
- the_geom geometry,
- CONSTRAINT osm_roads_pkey PRIMARY KEY (uid),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-CREATE INDEX osm_roads_geom_idx ON osm_roads USING gist(the_geom);
-ALTER TABLE osm_roads OWNER to redadeg;
-
-
--- la couche en version routable
-DROP TABLE IF EXISTS osm_roads_pgr CASCADE ;
-CREATE TABLE osm_roads_pgr
-(
- id bigint,
- osm_id bigint,
- highway text,
- type text,
- oneway text,
- ref text,
- name_fr text,
- name_br text,
- source bigint,
- target bigint,
- cost double precision,
- reverse_cost double precision,
- the_geom geometry,
- CONSTRAINT osm_roads_pgr_pkey PRIMARY KEY (id),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-CREATE INDEX osm_roads_pgr_source_idx ON osm_roads_pgr (source);
-CREATE INDEX osm_roads_pgr_target_idx ON osm_roads_pgr (target);
-ALTER TABLE osm_roads_pgr OWNER to redadeg;
-
-
--- la couche des points pour nettoyer la couche de routage
-DROP TABLE IF EXISTS phase_2_point_nettoyage CASCADE ;
-CREATE TABLE phase_2_point_nettoyage
-(
- id serial,
- pt_id bigint,
- edge_id bigint,
- distance numeric,
- the_geom geometry,
- CONSTRAINT phase_2_point_nettoyage_pkey PRIMARY KEY (id),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_2_point_nettoyage OWNER to redadeg;
-
-
--- couche de polygones pour supprimer le contenu de osm_roads_pgr pour la gestion des boucles
-DROP TABLE IF EXISTS osm_roads_pgr_patch_mask CASCADE ;
-CREATE TABLE osm_roads_pgr_patch_mask
-(
- id serial,
- name text,
- the_geom geometry,
- CONSTRAINT osm_roads_pgr_patch_mask_pkid PRIMARY KEY (id),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POLYGON'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE osm_roads_pgr_patch_mask OWNER to redadeg;
-
-
--- couche jumelle de osm_roads mais avec des lignes gérées à la main pour les boucles
-DROP TABLE IF EXISTS osm_roads_pgr_patch CASCADE ;
-CREATE TABLE osm_roads_pgr_patch
-(
- id serial,
- osm_id bigint,
- highway text,
- type text,
- oneway text,
- ref text,
- name_fr text,
- name_br text,
- source bigint,
- target bigint,
- cost double precision,
- reverse_cost double precision,
- the_geom geometry,
- CONSTRAINT osm_roads_pgr_patch_pkey PRIMARY KEY (id),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE osm_roads_pgr_patch OWNER to redadeg;
--- la séquence doit commencer à un chiffre supérieur à 1 car sinon ça fiche la pagaille sur le calcul de routage
-ALTER SEQUENCE osm_roads_pgr_patch_id_seq START WITH 1000 ;
-
-
-
--- la table qui va recevoir le résultat du calcul d'itinéraire
-DROP TABLE IF EXISTS phase_2_trace_pgr CASCADE ;
-CREATE TABLE phase_2_trace_pgr
-(
- secteur_id integer,
- -- info de routage
- path_seq bigint,
- node bigint,
- cost double precision,
- agg_cost double precision,
- -- info OSM
- osm_id bigint,
- highway text,
- type text,
- oneway text,
- ref text,
- name_fr text,
- name_br text,
- the_geom geometry,
- --CONSTRAINT phase_2_trace_pkey PRIMARY KEY (secteur_id, path_seq),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_2_trace_pgr OWNER to redadeg;
-
--- une vue en 4326 pour export
-DROP VIEW IF EXISTS phase_2_trace_pgr_4326 ;
-CREATE VIEW phase_2_trace_pgr_4326 AS
- SELECT
- secteur_id,
- path_seq, node, cost, agg_cost,
- osm_id, highway, type, oneway, ref, name_fr, name_br,
- ST_Transform(the_geom,4326)::geometry(LineString, 4326) AS the_geom
- FROM phase_2_trace_pgr ;
-ALTER TABLE phase_2_trace_pgr_4326 OWNER to redadeg;
-
-
-
--- couche qui contient 1 ligne par secteur
-DROP TABLE IF EXISTS phase_2_trace_secteur CASCADE ;
-CREATE TABLE phase_2_trace_secteur
-(
- secteur_id int,
- nom_fr text,
- nom_br text,
- longueur int,
- longueur_km numeric,
- the_geom geometry,
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_2_trace_secteur OWNER to redadeg;
-
--- une vue en 4326 pour export
-DROP VIEW IF EXISTS phase_2_trace_secteur_4326 ;
-CREATE VIEW phase_2_trace_secteur_4326 AS
- SELECT
- secteur_id, nom_fr, nom_br,
- longueur, longueur_km,
- ST_Transform(the_geom,4326)::geometry(MultiLineString, 4326) AS the_geom
- FROM phase_2_trace_secteur ;
-ALTER TABLE phase_2_trace_secteur_4326 OWNER to redadeg;
-
-
--- ça sert à quoi ça ?
-DROP TABLE IF EXISTS phase_2_trace_trous CASCADE ;
-CREATE TABLE phase_2_trace_trous
-(
- id serial,
- secteur_id int,
- the_geom geometry,
- CONSTRAINT phase_2_trace_trous_pkid PRIMARY KEY (id),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_2_trace_trous OWNER to redadeg;
-
-
-
-
-
-
-
--- la table qui va contenir des tronçons de x m
-DROP TABLE IF EXISTS phase_2_trace_troncons CASCADE ;
-CREATE TABLE phase_2_trace_troncons
-(
- uid bigint,
- secteur_id int,
- ordre bigint,
- km bigint,
- km_reel bigint,
- longueur integer,
- -- info OSM
- osm_id bigint,
- highway text,
- type text,
- oneway text,
- ref text,
- name_fr text,
- name_br text,
- the_geom geometry,
- CONSTRAINT phase_2_trace_troncons_pkey PRIMARY KEY (uid),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_2_trace_troncons OWNER to redadeg;
-
-
-DROP VIEW IF EXISTS phase_2_tdb ;
-CREATE VIEW phase_2_tdb AS
- WITH total AS
- (
- SELECT
- 0 AS secteur_id, 'Total' AS nom_fr, 'Hollad' AS nom_br,
- SUM(longueur_km) AS longueur_km
- FROM public.phase_2_trace_secteur
- GROUP BY 1
- )
- SELECT
- a.secteur_id, a.nom_fr, a.nom_br,
- a.longueur_km,
- -- b.km_reels AS longueur_km_attendu, << vérifier si ça sert
- -- -(b.km_reels - a.longueur_km) AS difference, << vérifier si ça sert
- TRUNC(a.longueur_km / (SELECT longueur_km FROM total) * 2020, 0) AS nb_km_redadeg
- --TRUNC((a.longueur_km / (SELECT longueur_km FROM total) * 2020) / b.km_reels, 3) AS longueur_km_redadeg
- FROM phase_2_trace_secteur a JOIN secteur b ON a.secteur_id = b.id
- UNION
- SELECT
- 0 AS secteur_id, 'Total' AS nom_fr, 'Hollad' AS nom_br,
- SUM(longueur_km) AS longueur_km,
- 0
- -- 0,0,0
- FROM public.phase_2_trace_secteur
- GROUP BY 1
- ORDER BY secteur_id ASC ;
-ALTER TABLE phase_2_tdb OWNER TO redadeg;
-
-
-
-
-/*
-==========================================================================
-
- phase 3 : calcul des PK auto
-
-==========================================================================
-*/
-
-DROP TABLE IF EXISTS phase_3_trace_troncons CASCADE ;
-CREATE TABLE phase_3_trace_troncons
-(
- troncon_id bigint,
- secteur_id int,
- the_geom geometry,
- CONSTRAINT phase_3_trace_troncons_pkey PRIMARY KEY (troncon_id),
- --CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text),
- --CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_3_trace_troncons OWNER TO redadeg;
-
--- la même couche en 4326
-DROP VIEW IF EXISTS phase_3_trace_troncons_4326 ;
-CREATE VIEW phase_3_trace_troncons_4326 AS
- SELECT
- troncon_id,
- secteur_id,
- ST_Transform(the_geom,4326) AS the_geom
- FROM phase_3_trace_troncons ;
-ALTER TABLE phase_3_trace_troncons_4326 OWNER TO redadeg;
-
-
-
-DROP TABLE IF EXISTS phase_3_trace_secteurs CASCADE ;
-CREATE TABLE phase_3_trace_secteurs
-(
- secteur_id int,
- nom_fr text,
- nom_br text,
- km_reels numeric(8,2),
- the_geom geometry,
- CONSTRAINT phase_3_trace_secteurs_pkey PRIMARY KEY (secteur_id),
- --CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text),
- --CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_3_trace_secteurs OWNER TO redadeg;
-
--- la même couche en 4326
-DROP VIEW IF EXISTS phase_3_trace_secteurs_4326 ;
-CREATE VIEW phase_3_trace_secteurs_4326 AS
- SELECT
- secteur_id, nom_fr, nom_br,
- km_reels,
- ST_Transform(the_geom,4326) AS the_geom
- FROM phase_3_trace_secteurs ;
-ALTER TABLE phase_3_trace_secteurs_4326 OWNER TO redadeg;
-
-
-
--- la couche des PK calculés automatiquement
-DROP TABLE IF EXISTS phase_3_pk_auto CASCADE ;
-CREATE TABLE phase_3_pk_auto
-(
- pk_id integer,
- pk_x numeric(8,1),
- pk_y numeric(8,1),
- pk_long numeric(10,8),
- pk_lat numeric(10,8),
- length_real numeric(6,2),
- length_theorical integer,
- secteur_id integer,
- municipality_admincode text,
- municipality_postcode text,
- municipality_name_fr text,
- municipality_name_br text,
- way_osm_id bigint,
- way_highway text,
- way_type text,
- way_oneway text,
- way_ref text,
- way_name_fr text,
- way_name_br text,
- the_geom geometry,
- CONSTRAINT phase_3_pk_auto_pkey PRIMARY KEY (pk_id),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-) ;
-ALTER TABLE phase_3_pk_auto OWNER TO redadeg;
-
-
--- la même couche en 4326
-DROP VIEW IF EXISTS phase_3_pk_auto_4326 ;
-CREATE VIEW phase_3_pk_auto_4326 AS
- SELECT
- pk_id,
- pk_x, pk_y, pk_long, pk_lat,
- length_real, length_theorical,
- secteur_id,
- municipality_admincode, municipality_postcode,
- municipality_name_fr, municipality_name_br,
- way_osm_id, way_highway, way_type, way_oneway, way_ref,
- way_name_fr, way_name_br,
- ST_Transform(the_geom,4326)::geometry(Point, 4326) AS the_geom
- FROM phase_3_pk_auto ;
-ALTER TABLE phase_3_pk_auto_4326 OWNER TO redadeg;
-
-
--- couche de lignes simples directes de PK à PK
-DROP TABLE IF EXISTS phase_3_pk_sens_verif ;
-CREATE TABLE phase_3_pk_sens_verif
-(
- secteur_id integer,
- the_geom geometry,
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-) ;
-ALTER TABLE phase_3_pk_sens_verif OWNER TO redadeg;
-
-
--- la même couche en 4326
-DROP VIEW IF EXISTS phase_3_pk_sens_verif_4326 ;
-CREATE VIEW phase_3_pk_sens_verif_4326 AS
- SELECT
- secteur_id,
- ST_Transform(the_geom,4326)::geometry(LineString, 4326) AS the_geom
- FROM phase_3_pk_sens_verif ;
-ALTER TABLE phase_3_pk_sens_verif_4326 OWNER TO redadeg;
-
-
-
-
-/*
-==========================================================================
-
- phase 4 : création de la couche des PK à charger dans umap pour la phase 5
-
-==========================================================================
-*/
-
-
-DROP VIEW IF EXISTS phase_4_pk_auto_4326 CASCADE ;
-CREATE VIEW phase_4_pk_auto_4326 AS
- SELECT
- pk_id,
- secteur_id,
- ST_Transform(the_geom,4326)::geometry(Point, 4326) AS the_geom
- FROM phase_3_pk_auto ;
-ALTER TABLE phase_4_pk_auto_4326 OWNER TO redadeg;
-
-
-
-
-/*
-==========================================================================
-
- phase 5 : gestion manuelle
-
-==========================================================================
-*/
-
--- la table des PK avant modifications manuelles = PK de référence = phase_3_pk_auto
-DROP TABLE IF EXISTS phase_5_pk_ref CASCADE ;
-CREATE TABLE phase_5_pk_ref
-(
- pk_id integer,
- pk_x numeric(8,1),
- pk_y numeric(8,1),
- pk_long numeric(10,8),
- pk_lat numeric(10,8),
- length_real numeric(6,2),
- length_theorical integer,
- secteur_id integer,
- municipality_admincode text,
- municipality_postcode text,
- municipality_name_fr text,
- municipality_name_br text,
- way_osm_id bigint,
- way_highway text,
- way_type text,
- way_oneway text,
- way_ref text,
- way_name_fr text,
- way_name_br text,
- the_geom geometry,
- CONSTRAINT phase_5_pk_ref_pkey PRIMARY KEY (pk_id),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-) ;
-ALTER TABLE phase_5_pk_ref OWNER TO redadeg;
-
--- on charge cette table avec les données finales de la phase 3
-TRUNCATE TABLE phase_5_pk_ref ;
-INSERT INTO phase_5_pk_ref SELECT * FROM phase_3_pk_auto ;
-
-
--- on définit manuellement la couche avec un type mixte parce qu'on a des lignes dans la couche de points…
-DROP TABLE IF EXISTS phase_5_pk_umap_4326 CASCADE ;
-CREATE TABLE phase_5_pk_umap_4326
-(
- ogc_fid integer,
- pk_id integer,
- secteur_id integer,
- the_geom geometry,
- --CONSTRAINT phase_5_pk_umap_pkey PRIMARY KEY (ogc_fid),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 4326)
-);
-ALTER TABLE phase_5_pk_umap_4326 OWNER TO redadeg;
-
--- la table en 2154 pour travailler
-DROP TABLE IF EXISTS phase_5_pk_umap CASCADE ;
-CREATE TABLE phase_5_pk_umap
-(
- pk_id integer,
- secteur_id integer,
- the_geom geometry,
- CONSTRAINT phase_5_pk_umap_pkey PRIMARY KEY (pk_id),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-);
-ALTER TABLE phase_5_pk_umap OWNER TO redadeg;
-
-
--- la table finale
-DROP TABLE IF EXISTS phase_5_pk CASCADE ;
-CREATE TABLE phase_5_pk
-(
- pk_id integer,
- pk_x numeric(8,1),
- pk_y numeric(8,1),
- pk_long numeric(10,8),
- pk_lat numeric(10,8),
- length_real numeric(6,2),
- length_theorical integer,
- secteur_id integer,
- municipality_admincode text,
- municipality_postcode text,
- municipality_name_fr text,
- municipality_name_br text,
- way_osm_id bigint,
- way_highway text,
- way_type text,
- way_oneway text,
- way_ref text,
- way_name_fr text,
- way_name_br text,
- the_geom geometry,
- CONSTRAINT phase_5_pk_pkey PRIMARY KEY (pk_id),
- CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text),
- CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
-) ;
-ALTER TABLE phase_5_pk OWNER TO redadeg;
-
-
-
-
-
-
-
-
-
diff --git a/scripts/drop_tables.sql b/scripts/drop_tables.sql
deleted file mode 100644
index bb5b903..0000000
--- a/scripts/drop_tables.sql
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
-
-SELECT 'DROP TABLE ' || TABLE_NAME || ' CASCADE ;' AS SQL
-FROM information_schema.tables
-WHERE
- table_schema = 'public'
- AND table_type = 'BASE TABLE'
- AND TABLE_NAME NOT IN ('geography_columns','geometry_columns','raster_columns','raster_overviews','spatial_ref_sys')
-ORDER BY TABLE_NAME
-
-*/
-
-
-DROP TABLE osm_communes CASCADE ;
-DROP TABLE osm_roads CASCADE ;
-DROP TABLE osm_roads_pgr CASCADE ;
-DROP TABLE osm_roads_pgr_patch CASCADE ;
-DROP TABLE osm_roads_pgr_patch_mask CASCADE ;
-DROP TABLE phase_1_pk_vip CASCADE ;
-DROP TABLE phase_1_pk_vip_3857 CASCADE ;
-DROP TABLE phase_1_trace CASCADE ;
-DROP TABLE phase_1_trace_3857 CASCADE ;
-DROP TABLE phase_1_trace_4326 CASCADE ;
-DROP TABLE phase_1_trace_troncons CASCADE ;
-DROP TABLE phase_2_pk_secteur CASCADE ;
-DROP TABLE phase_2_pk_secteur_3857 CASCADE ;
-DROP TABLE phase_2_point_nettoyage CASCADE ;
-DROP TABLE phase_2_point_nettoyage_3857 CASCADE ;
-DROP TABLE phase_2_trace_pgr CASCADE ;
-DROP TABLE phase_2_trace_secteur CASCADE ;
-DROP TABLE phase_2_trace_troncons CASCADE ;
-DROP TABLE phase_2_trace_trous CASCADE ;
-DROP TABLE phase_3_pk_auto CASCADE ;
-DROP TABLE phase_3_pk_sens_verif CASCADE ;
-DROP TABLE phase_3_trace_secteurs CASCADE ;
-DROP TABLE phase_3_trace_troncons CASCADE ;
-DROP TABLE phase_5_pk CASCADE ;
-DROP TABLE phase_5_pk_ref CASCADE ;
-DROP TABLE phase_5_pk_umap CASCADE ;
-DROP TABLE phase_5_pk_umap_4326 CASCADE ;
-DROP TABLE secteur CASCADE ;
diff --git a/scripts/export_prefecture_liste_voies.fmw b/scripts/export_prefecture_liste_voies.fmw
deleted file mode 100644
index bbef3d5..0000000
--- a/scripts/export_prefecture_liste_voies.fmw
+++ /dev/null
@@ -1,722 +0,0 @@
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-
-FME_PYTHON_VERSION 38
-ARCGIS_COMPATIBILITY ARCGIS_AUTO
-GUI IGNORE DestDataset_CSV2_1,CSV2_OUT_DATASET_GROUP_CSV2_1,CSV2_OUT_EXTENSION_CSV2_1,CSV2_OUT_FIELDS_GROUP_CSV2_1,CSV2_OUT_DELIMITER_CSV2_1,CSV2_OUT_ENCODING_GROUP_CSV2_1,CSV2_OUT_ENCODING_CSV2_1,CSV2_OUT_WRITE_BOM_FOR_UNICODE_CSV2_1,CSV2_OUT_ADVANCED_GROUP_CSV2_1,CSV2_OUT_QUALIFY_FIELD_NAMES_CSV2_1,CSV2_OUT_QUALIFY_FIELD_VALUES_CSV2_1,CSV2_OUT_UNQUALIFIED_FIELD_VALUE_HANDLING_CSV2_1,CSV2_OUT_FIELD_QUALIFIER_CHARACTER_CSV2_1,CSV2_OUT_FIELD_QUALIFIER_ESCAPE_CHARACTER_CSV2_1,CSV2_OUT_ROW_TERMINATION_CSV2_1,CSV2_OUT_WRITE_SCHEMA_FILE_CSV2_1,CSV2_OUT_EXISTING_SCHEMA_FILE_HANDLING_CSV2_1
-# ============================================================================
-DEFAULT_MACRO DestDataset_CSV2 /Volumes/ker/mael/projets/osm_bzh/github/ar_redadeg/data/2021
-# ============================================================================
-GUI DIRNAME DestDataset_CSV2 Destination CSV (Comma Separated Value) Folder:
-# ============================================================================
-USER_PARAMETERS eyJwYXJhbWV0ZXJzIjpbeyJhY2Nlc3NNb2RlIjoid3JpdGUiLCJkZWZhdWx0VmFsdWUiOiIvVm9sdW1lcy9rZXIvbWFlbC9wcm9qZXRzL29zbV9iemgvZ2l0aHViL2FyX3JlZGFkZWcvZGF0YS8yMDIxIiwiaXRlbXNUb1NlbGVjdCI6ImZvbGRlcnMiLCJuYW1lIjoiRGVzdERhdGFzZXRfQ1NWMiIsInByb21wdCI6IkRlc3RpbmF0aW9uIENTViAoQ29tbWEgU2VwYXJhdGVkIFZhbHVlKSBGb2xkZXI6IiwicmVxdWlyZWQiOnRydWUsInNlbGVjdE11bHRpcGxlIjpmYWxzZSwidHlwZSI6ImZpbGUiLCJ2YWxpZGF0ZUV4aXN0ZW5jZSI6ZmFsc2UsInZhbHVlVHlwZSI6InN0cmluZyJ9XX0=
-# ============================================================================
-INCLUDE [ if {{$(DestDataset_CSV2)} == {}} { puts_real {Parameter 'DestDataset_CSV2' must be given a value.}; exit 1; }; ]
-#! START_HEADER
-#! START_WB_HEADER
-READER_TYPE MULTI_READER
-WRITER_TYPE MULTI_WRITER
-MULTI_WRITER_DATASET_ORDER BY_ID
-MULTI_WRITER_FIRST_WRITER_ID 0
-MULTI_WRITER_TYPE{0} CSV2
-MULTI_WRITER_KEYWORD{0} CSV2_1
-#! END_WB_HEADER
-#! START_WB_HEADER
-MACRO WB_KEYWORD "CSV2_1"
-#! END_WB_HEADER
-#! START_DEST_HEADER CSV2 CSV2_1
-# =====================================================================
-# The following GUI line prompts for a folder where the
-# CSV files will be stored
-#! END_DEST_HEADER
-#! START_WB_HEADER
-DEFAULT_MACRO DestDataset
-INCLUDE [ if {"$(DestDataset)" != ""} { \
- puts {DEFAULT_MACRO DestDataset_CSV2_1 $(DestDataset)} \
- } ]
-#! END_WB_HEADER
-#! START_DEST_HEADER CSV2 CSV2_1
-DEFAULT_MACRO DestDataset_CSV2_1 $(DestDataset_CSV2)
-GUI DIRNAME DestDataset_CSV2_1 Destination CSV (Comma Separated Value) Folder:
-DEFAULT_MACRO CSV2_OUT_DATASET_GROUP_CSV2_1
-GUI OPTIONAL DISCLOSUREGROUP CSV2_OUT_DATASET_GROUP_CSV2_1 CSV2_OUT_EXTENSION_CSV2_1%CSV2_OUT_EXISTING_FILE_HANDLING Dataset
-DEFAULT_MACRO CSV2_OUT_EXTENSION_CSV2_1 csv
-CSV2_1_EXTENSION "$(CSV2_OUT_EXTENSION_CSV2_1)"
-GUI OPTIONAL TEXT CSV2_OUT_EXTENSION_CSV2_1 Extension:
-DEFAULT_MACRO CSV2_OUT_EXISTING_FILE_HANDLING_CSV2_1 Yes
-CSV2_1_EXISTING_FILE_HANDLING "$(CSV2_OUT_EXISTING_FILE_HANDLING_CSV2_1)"
-DEFAULT_MACRO CSV2_OUT_FIELDS_GROUP_CSV2_1
-GUI OPTIONAL DISCLOSUREGROUP CSV2_OUT_FIELDS_GROUP_CSV2_1 CSV2_OUT_DELIMITER_CSV2_1%CSV2_OUT_WRITE_FIELD_NAMES Fields
-DEFAULT_MACRO CSV2_OUT_DELIMITER_CSV2_1
-CSV2_1_DELIMITER "$(CSV2_OUT_DELIMITER_CSV2_1)"
-GUI STRING_OR_CHOICE_ENCODED CSV2_OUT_DELIMITER_CSV2_1 ,%;%|%space%tab Delimiter Character:
-DEFAULT_MACRO CSV2_OUT_WRITE_FIELD_NAMES_CSV2_1 firstrow
-CSV2_1_WRITE_FIELD_NAMES "$(CSV2_OUT_WRITE_FIELD_NAMES_CSV2_1)"
-DEFAULT_MACRO CSV2_OUT_ENCODING_GROUP_CSV2_1
-GUI OPTIONAL DISCLOSUREGROUP CSV2_OUT_ENCODING_GROUP_CSV2_1 CSV2_OUT_ENCODING_CSV2_1%CSV2_OUT_WRITE_BOM_FOR_UNICODE_CSV2_1 Encoding
-DEFAULT_MACRO CSV2_OUT_ENCODING_CSV2_1 UTF-8
-CSV2_1_ENCODING "$(CSV2_OUT_ENCODING_CSV2_1)"
-GUI STRING_OR_ENCODING CSV2_OUT_ENCODING_CSV2_1 fme-system%* Character Encoding:
-DEFAULT_MACRO CSV2_OUT_WRITE_BOM_FOR_UNICODE_CSV2_1 Yes
-CSV2_1_WRITE_BOM_FOR_UNICODE "$(CSV2_OUT_WRITE_BOM_FOR_UNICODE_CSV2_1)"
-GUI CHOICE CSV2_OUT_WRITE_BOM_FOR_UNICODE_CSV2_1 Yes%No Write Byte Order Mark for Unicode:
-DEFAULT_MACRO CSV2_OUT_ADVANCED_GROUP_CSV2_1
-GUI OPTIONAL DISCLOSUREGROUP CSV2_OUT_ADVANCED_GROUP_CSV2_1 FME_DISCLOSURE_CLOSED%CSV2_OUT_QUALIFY_FIELD_NAMES_CSV2_1%CSV2_OUT_QUALIFY_FIELD_VALUES_CSV2_1%CSV2_OUT_UNQUALIFIED_FIELD_VALUE_HANDLING_CSV2_1%CSV2_OUT_FIELD_QUALIFIER_CHARACTER_CSV2_1%CSV2_OUT_FIELD_QUALIFIER_ESCAPE_CHARACTER_CSV2_1%CSV2_OUT_ROW_TERMINATION_CSV2_1%CSV2_OUT_WRITE_SCHEMA_FILE_CSV2_1 Advanced
-DEFAULT_MACRO CSV2_OUT_QUALIFY_FIELD_NAMES_CSV2_1 if_needed
-CSV2_1_QUALIFY_FIELD_NAMES "$(CSV2_OUT_QUALIFY_FIELD_NAMES_CSV2_1)"
-GUI LOOKUP_CHOICE CSV2_OUT_QUALIFY_FIELD_NAMES_CSV2_1 Yes,yes%No,no%IfNeeded,if_needed Qualify Field Names:
-DEFAULT_MACRO CSV2_OUT_QUALIFY_FIELD_VALUES_CSV2_1 if_needed
-CSV2_1_QUALIFY_FIELD_VALUES "$(CSV2_OUT_QUALIFY_FIELD_VALUES_CSV2_1)"
-GUI ACTIVECHOICE_LOOKUP CSV2_OUT_QUALIFY_FIELD_VALUES_CSV2_1 Yes,yes,CSV2_OUT_UNQUALIFIED_FIELD_VALUE_HANDLING_CSV2_1%No,no%IfNeeded,if_needed,CSV2_OUT_UNQUALIFIED_FIELD_VALUE_HANDLING_CSV2_1 Qualify Field Values:
-DEFAULT_MACRO CSV2_OUT_UNQUALIFIED_FIELD_VALUE_HANDLING_CSV2_1
-CSV2_1_UNQUALIFIED_FIELD_VALUE_HANDLING "$(CSV2_OUT_UNQUALIFIED_FIELD_VALUE_HANDLING_CSV2_1)"
-GUI LOOKUP_CHOICE CSV2_OUT_UNQUALIFIED_FIELD_VALUE_HANDLING_CSV2_1 RemoveUnsafeCharacters,remove_unsafe%PreserveUnsafeCharacters,preserve_unsafe Unqualified Field Value Handling:
-DEFAULT_MACRO CSV2_OUT_FIELD_QUALIFIER_CHARACTER_CSV2_1
-CSV2_1_FIELD_QUALIFIER_CHARACTER "$(CSV2_OUT_FIELD_QUALIFIER_CHARACTER_CSV2_1)"
-GUI STRING_ENCODED CSV2_OUT_FIELD_QUALIFIER_CHARACTER_CSV2_1 Field Qualifier Character:
-DEFAULT_MACRO CSV2_OUT_FIELD_QUALIFIER_ESCAPE_CHARACTER_CSV2_1
-CSV2_1_FIELD_QUALIFIER_ESCAPE_CHARACTER "$(CSV2_OUT_FIELD_QUALIFIER_ESCAPE_CHARACTER_CSV2_1)"
-GUI STRING_ENCODED CSV2_OUT_FIELD_QUALIFIER_ESCAPE_CHARACTER_CSV2_1 Field Qualifier Escape Character:
-DEFAULT_MACRO CSV2_OUT_ROW_TERMINATION_CSV2_1 System
-CSV2_1_ROW_TERMINATION "$(CSV2_OUT_ROW_TERMINATION_CSV2_1)"
-GUI CHOICE CSV2_OUT_ROW_TERMINATION_CSV2_1 System%Windows%Unix%Macintosh Row Termination:
-DEFAULT_MACRO CSV2_OUT_WRITE_SCHEMA_FILE_CSV2_1 NO
-CSV2_1_WRITE_SCHEMA_FILE "$(CSV2_OUT_WRITE_SCHEMA_FILE_CSV2_1)"
-GUI ACTIVEDISCLOSUREGROUP CSV2_OUT_WRITE_SCHEMA_FILE_CSV2_1 FME_DISCLOSURE_CLOSED%CSV2_OUT_EXISTING_SCHEMA_FILE_HANDLING_CSV2_1 Write Schema Configuration File
-DEFAULT_MACRO CSV2_OUT_EXISTING_SCHEMA_FILE_HANDLING_CSV2_1
-CSV2_1_EXISTING_SCHEMA_FILE_HANDLING "$(CSV2_OUT_EXISTING_SCHEMA_FILE_HANDLING_CSV2_1)"
-GUI CHOICE CSV2_OUT_EXISTING_SCHEMA_FILE_HANDLING_CSV2_1 Overwrite%Prepend Existing Schema File Handling:
-DEFAULT_MACRO CSV2_OUT_COORDINATE_SYSTEM_GRANULARITY_CSV2_1 FEATURE_TYPE
-CSV2_1_COORDINATE_SYSTEM_GRANULARITY "$(CSV2_OUT_COORDINATE_SYSTEM_GRANULARITY_CSV2_1)"
-# ============================================================================
-CSV2_1_GENERATE_FME_BUILD_NUM 21306
-CSV2_1_DATASET "$(DestDataset_CSV2_1)"
-#! END_DEST_HEADER
-#! START_WB_HEADER
-#! END_WB_HEADER
-#! END_HEADER
-
-LOG_FILENAME "$(FME_MF_DIR)export_prefecture_liste_voies.log"
-LOG_APPEND NO
-LOG_FILTER_MASK -1
-LOG_MAX_FEATURES 200
-LOG_MAX_RECORDED_FEATURES 200
-FME_REPROJECTION_ENGINE FME
-FME_IMPLICIT_CSMAP_REPROJECTION_MODE Auto
-FME_GEOMETRY_HANDLING Enhanced
-FME_STROKE_MAX_DEVIATION 0
-FME_NAMES_ENCODING UTF-8
-DEFAULT_MACRO DATASET_KEYWORD_CSV2_1 CSV2_1
-# -------------------------------------------------------------------------
-
-MULTI_READER_CONTINUE_ON_READER_FAILURE No
-
-# -------------------------------------------------------------------------
-
-MACRO WORKSPACE_NAME export_prefecture_liste_voies
-MACRO FME_VIEWER_APP fmedatainspector
-DEFAULT_MACRO WB_CURRENT_CONTEXT
-# -------------------------------------------------------------------------
-MACRO SQLCreator_DIRECTIVES NAMED_CONNECTION bed110redadeg_2021redadeg
-FACTORY_DEF {*} CreationFactory FACTORY_NAME { SQLCreator_Creator } OUTPUT { FEATURE_TYPE _____CREATED______ }
-FACTORY_DEF {*} QueryFactory FACTORY_NAME { SQLCreator } INPUT FEATURE_TYPE _____CREATED______ QUERY_SQL { SELECTleftcom.insee2asdptcom.inseecom.nompk.pk_idpk.way_refasvoie_refCASEWHENway_name_frISNULLTHENvoienondnommeELSEway_name_frENDasvoie_nomFROMphase_3_pk_autopkosm_communescomWHEREST_Intersectspk.the_geomcom.the_geomORDERBYpk_id } COMBINE_ATTRIBUTES RESULT_ONLY COMBINE_GEOMETRY RESULT_ONLY READER_TYPE { POSTGRES } READER_DATASET { "bed110redadeg_2021redadeg" } READER_PARAMS { $(SQLCreator_DIRECTIVES) } QUERYFCT_PROPAGATE_IDS_ON_SQL_EXECUTE YES CONTINUE_ON_READER_ERROR YES OUTPUT { RESULT FEATURE_TYPE SQLCreator_RESULT @SupplyAttributes(fme_feature_type,SQLCreator) } OUTPUT { READER_ERROR FEATURE_TYPE SQLCreator_ }
-FACTORY_DEF * BranchingFactory FACTORY_NAME "SQLCreator_RESULT Brancher -1 5" INPUT FEATURE_TYPE SQLCreator_RESULT TARGET_FACTORY "$(WB_CURRENT_CONTEXT)_CREATOR_BRANCH_TARGET" MAXIMUM_COUNT None OUTPUT PASSED FEATURE_TYPE *
-DEFAULT_MACRO _WB_BYPASS_TERMINATION No
-FACTORY_DEF * TeeFactory FACTORY_NAME SQLCreator_ INPUT FEATURE_TYPE SQLCreator_ OUTPUT FAILED FEATURE_TYPE * @Abort(ENCODED, SQLCreatoroutputaRejectedfeature.TocontinuetranslationwhenfeaturesarerejectedchangeWorkspaceParametersTranslationRejectedFeatureHandlingtoContinueTranslation)
-# -------------------------------------------------------------------------
-FACTORY_DEF * TeeFactory FACTORY_NAME "$(WB_CURRENT_CONTEXT)_CREATOR_BRANCH_TARGET" INPUT FEATURE_TYPE * OUTPUT FEATURE_TYPE *
-# -------------------------------------------------------------------------
-
-FACTORY_DEF * RoutingFactory FACTORY_NAME "Destination Feature Type Routing Correlator" COMMAND_PARM_EVALUATION SINGLE_PASS INPUT FEATURE_TYPE * ROUTE FME_GENERIC SQLCreator_RESULT TO CSV2 __GO_TO_FINAL_OUTPUT_ROUTER__ multi_writer_id,0,SupplyAttributesENCODED__wb_out_feat_type__ar_redadeg_prefecture GEOMETRY FEATURE_TYPE_ATTRIBUTE __wb_out_feat_type__ OUTPUT ROUTED FEATURE_TYPE * OUTPUT NOT_ROUTED FEATURE_TYPE __nuke_me__ @Tcl2("FME_StatMessage 818059 [FME_GetAttribute fme_template_feature_type] 818060 818061 fme_warn")
-# -------------------------------------------------------------------------
-
-FACTORY_DEF * TeeFactory FACTORY_NAME "Final Output Nuker" INPUT FEATURE_TYPE __nuke_me__
-
-# -------------------------------------------------------------------------
-CSV2_1_DEF ar_redadeg_prefecture csv_existing_file_handling Yes csv_write_field_names firstrow dpt string insee string nom string pk_id string voie_ref string voie_nom string
diff --git a/scripts/load_communes_osm_br.sh b/scripts/load_communes_osm_br.sh
deleted file mode 100755
index b25ece5..0000000
--- a/scripts/load_communes_osm_br.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-set -e
-set -u
-
-PSQL=/usr/bin/psql
-DB_HOST=localhost
-DB_NAME=redadeg_$millesime
-DB_USER=redadeg
-DB_PASSWD=redadeg
-
-# ce script récupère une couche des communes de France et la charge dans la base de données
-
-cd data
-
-# récupérer la couche communales OSM
-# https://www.data.gouv.fr/fr/datasets/decoupage-administratif-communal-francais-issu-d-openstreetmap/
-wget http://tile.openstreetmap.bzh/data/br/osm_br_municipalities.geojson
-#wget pour voir la progression
-
-ogr2ogr -f "PostgreSQL" PG:"host=$DB_HOST user=$DB_USER password=$DB_PASSWD dbname=$DB_NAME" osm_br_municipalities.geojson -nln osm_communes_4326 -lco GEOMETRY_NAME=the_geom -explodecollections -overwrite
-
-
-# passer la couche de WGS84 en Lambert93
-$PSQL -h $DB_HOST -U $DB_USER -d $DB_NAME -c "TRUNCATE TABLE osm_communes ;"
-$PSQL -h $DB_HOST -U $DB_USER -d $DB_NAME -c "
-INSERT INTO osm_communes
- SELECT
- ogc_fid,
- insee,
- nom,
- wikipedia,
- surf_ha,
- ST_Transform(ST_SetSRID(the_geom,4326),2154) AS the_geom
- FROM osm_communes_4326
- WHERE left(insee,2) IN ('22','29','35','44','56')
- ORDER BY insee ASC ;"
-$PSQL -h $DB_HOST -U $DB_USER -d $DB_NAME -c "VACUUM FULL osm_communes;"
-
-
diff --git a/scripts/load_communes_osm_fr.sh b/scripts/load_communes_osm_fr.sh
deleted file mode 100755
index 54540f3..0000000
--- a/scripts/load_communes_osm_fr.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-set -e
-set -u
-
-millesime=2022
-
-PSQL=/usr/bin/psql
-DB_HOST=localhost
-DB_NAME=redadeg_$millesime
-DB_USER=redadeg
-DB_PASSWD=redadeg
-
-# ce script récupère une couche des communes de France et la charge dans la base de données
-
-cd ../data/$millesime/
-
-# récupérer la couche communales OSM
-# https://www.data.gouv.fr/fr/datasets/decoupage-administratif-communal-francais-issu-d-openstreetmap/
-#curl -sS http://osm13.openstreetmap.fr/~cquest/openfla/export/communes-20210101-shp.zip > communes-20210101-shp.zip
-wget http://osm13.openstreetmap.fr/~cquest/openfla/export/communes-20210101-shp.zip
-
-unzip -o communes-20210101-shp.zip
-
-ogr2ogr -f "PostgreSQL" PG:"host=$DB_HOST user=$DB_USER password=$DB_PASSWD dbname=$DB_NAME" communes-20210101.shp -nln osm_communes_4326 -lco GEOMETRY_NAME=the_geom -explodecollections -overwrite
-
-
-# passer la couche de WGS84 en Lambert93
-$PSQL -h $DB_HOST -U $DB_USER -d $DB_NAME -c "TRUNCATE TABLE osm_communes ;"
-$PSQL -h $DB_HOST -U $DB_USER -d $DB_NAME -c "
-INSERT INTO osm_communes
- SELECT
- ogc_fid,
- insee,
- nom,
- wikipedia,
- surf_ha,
- ST_Transform(ST_SetSRID(the_geom,4326),2154) AS the_geom
- FROM osm_communes_4326
- WHERE left(insee,2) IN ('22','29','35','44','56')
- ORDER BY insee ASC ;"
-$PSQL -h $DB_HOST -U $DB_USER -d $DB_NAME -c "VACUUM FULL osm_communes;"
-
-
diff --git a/scripts/load_osm_municipalities.fmw b/scripts/load_osm_municipalities.fmw
deleted file mode 100644
index bf49774..0000000
--- a/scripts/load_osm_municipalities.fmw
+++ /dev/null
@@ -1,2310 +0,0 @@
-#!
-#! redadeg"
-# --SourceDataset_POSTGIS_3 "breizhpolenovoredadeg"
-# --DestDataset_POSTGIS "breizhpolenovoredadeg"
-#
-#! ATTR_TYPE_ENCODING="SDF"
-#! BEGIN_PYTHON=""
-#! BEGIN_TCL=""
-#! CATEGORY=""
-#! DESCRIPTION=""
-#! DESTINATION="NONE"
-#! DESTINATION_ROUTING_FILE=""
-#! DOC_EXTENTS="3770.01 2162.51"
-#! DOC_TOP_LEFT="-17.0008 -2223.51"
-#! END_PYTHON=""
-#! END_TCL=""
-#! EXPLICIT_BOOKMARK_ORDER="false"
-#! FME_BUILD_NUM="18592"
-#! FME_DOCUMENT_GUID="87f0b89a-cf35-4310-89da-a0e5e277513a"
-#! FME_DOCUMENT_PRIORGUID="5468dab7-2274-445b-b04d-4c151b68e682"
-#! FME_GEOMETRY_HANDLING="Enhanced"
-#! FME_IMPLICIT_CSMAP_REPROJECTION_MODE="Auto"
-#! FME_REPROJECTION_ENGINE="FME"
-#! FME_SERVER_SERVICES=""
-#! FME_STROKE_MAX_DEVIATION="0"
-#! HISTORY=""
-#! IGNORE_READER_FAILURE="No"
-#! LAST_SAVE_BUILD="FME(R) 2018.1.2.1 (20190319 - Build 18592 - macosx)"
-#! LAST_SAVE_DATE="2020-02-15T15:36:55"
-#! LOG_FILE=""
-#! LOG_MAX_RECORDED_FEATURES="200"
-#! MARKDOWN_DESCRIPTION=""
-#! MARKDOWN_USAGE=""
-#! MAX_LOG_FEATURES="200"
-#! MULTI_WRITER_DATASET_ORDER="BY_ID"
-#! PASSWORD=""
-#! PYTHON_COMPATIBILITY="27"
-#! REDIRECT_TERMINATORS="NONE"
-#! SHOW_ANNOTATIONS="true"
-#! SHOW_INFO_NODES="true"
-#! SOURCE="NONE"
-#! SOURCE_ROUTING_FILE=""
-#! TERMINATE_REJECTED="YES"
-#! TITLE=""
-#! USAGE=""
-#! USE_MARKDOWN=""
-#! VIEW_POSITION="1338.01 99.001"
-#! WARN_INVALID_XFORM_PARAM="Yes"
-#! WORKSPACE_VERSION="1"
-#! ZOOM_SCALE="100"
-#! >
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-#!
-
-FME_PYTHON_VERSION 27
-GUI IGNORE SourceDataset_GEOJSON_1,GEOJSON_IN_USE_SEARCH_ENVELOPE_GEOJSON_1,GEOJSON_IN_SEARCH_ENVELOPE_MINX_GEOJSON_1,GEOJSON_IN_SEARCH_ENVELOPE_MINY_GEOJSON_1,GEOJSON_IN_SEARCH_ENVELOPE_MAXX_GEOJSON_1,GEOJSON_IN_SEARCH_ENVELOPE_MAXY_GEOJSON_1,GEOJSON_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_GEOJSON_1,GEOJSON_IN_CLIP_TO_ENVELOPE_GEOJSON_1,GEOJSON_IN_NETWORK_AUTHENTICATION_GEOJSON_1,SourceDataset_POSTGIS_1,POSTGIS_IN_FME_CONNECTION_GROUP_POSTGIS_1,POSTGIS_IN_FME_GROUP_NAMED1_POSTGIS_1,POSTGIS_IN_WHERE_CLAUSE_POSTGIS_1,POSTGIS_IN_USE_SEARCH_ENVELOPE_POSTGIS_1,POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_1,POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_1,POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_1,POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_1,POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_1,POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_1,POSTGIS_IN_SEARCH_METHOD_POSTGIS_1,POSTGIS_IN_ADVANCED_POSTGIS_1,POSTGIS_IN_FEATURES_PER_FETCH_POSTGIS_1,POSTGIS_IN_BEGIN_SQL_POSTGIS_1,POSTGIS_IN_END_SQL_POSTGIS_1,POSTGIS_IN_SCHEMAS_FOR_TABLE_LISTING_POSTGIS_1,SourceDataset_POSTGIS_2,POSTGIS_IN_FME_CONNECTION_GROUP_POSTGIS_2,POSTGIS_IN_FME_GROUP_NAMED1_POSTGIS_2,POSTGIS_IN_WHERE_CLAUSE_POSTGIS_2,POSTGIS_IN_USE_SEARCH_ENVELOPE_POSTGIS_2,POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_2,POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_2,POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_2,POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_2,POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_2,POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_2,POSTGIS_IN_SEARCH_METHOD_POSTGIS_2,POSTGIS_IN_ADVANCED_POSTGIS_2,POSTGIS_IN_FEATURES_PER_FETCH_POSTGIS_2,POSTGIS_IN_BEGIN_SQL_POSTGIS_2,POSTGIS_IN_END_SQL_POSTGIS_2,POSTGIS_IN_SCHEMAS_FOR_TABLE_LISTING_POSTGIS_2,DestDataset_POSTGIS_3,POSTGIS_OUT_FME_CONNECTION_GROUP_POSTGIS_3,POSTGIS_OUT_ADVANCED_POSTGIS_3,POSTGIS_OUT_BULK_COPY_POSTGIS_3,POSTGIS_OUT_START_TRANSACTION_POSTGIS_3,POSTGIS_OUT_TRANSACTION_INTERVAL_POSTGIS_3,POSTGIS_OUT_INSERT_TEXT_GEOMETRY_POSTGIS_3,POSTGIS_OUT_BEGIN_SQL_POSTGIS_3,POSTGIS_OUT_END_SQL_POSTGIS_3
-DEFAULT_MACRO SourceDataset_GEOJSON http://tile.openstreetmap.bzh/data/br/osm_br_municipalities.geojson
-GUI FILE_OR_URL SourceDataset_GEOJSON GeoJSON_Documents(*.json;*.geojson)|*.json;*.geojson|All_Files|* Source GeoJSON File or URL:
-DEFAULT_MACRO SourceDataset_POSTGIS breizhpolenovoredadeg
-GUI NAMED_DB_CONNECTION_ENCODED SourceDataset_POSTGIS FMT:POSTGIS%FAMILY:PostgreSQL Connection:
-DEFAULT_MACRO SourceDataset_POSTGIS_3 breizhpolenovoredadeg
-GUI NAMED_DB_CONNECTION_ENCODED SourceDataset_POSTGIS_3 FMT:POSTGIS%FAMILY:PostgreSQL Connection:
-DEFAULT_MACRO DestDataset_POSTGIS breizhpolenovoredadeg
-GUI NAMED_DB_CONNECTION_ENCODED DestDataset_POSTGIS FMT:POSTGIS%FAMILY:PostgreSQL Connection:
-INCLUDE [ if {{$(SourceDataset_GEOJSON)} == {}} { puts_real {Parameter 'SourceDataset_GEOJSON' must be given a value.}; exit 1; }; ]
-INCLUDE [ if {{$(SourceDataset_POSTGIS)} == {}} { puts_real {Parameter 'SourceDataset_POSTGIS' must be given a value.}; exit 1; }; ]
-INCLUDE [ if {{$(SourceDataset_POSTGIS_3)} == {}} { puts_real {Parameter 'SourceDataset_POSTGIS_3' must be given a value.}; exit 1; }; ]
-INCLUDE [ if {{$(DestDataset_POSTGIS)} == {}} { puts_real {Parameter 'DestDataset_POSTGIS' must be given a value.}; exit 1; }; ]
-#! START_HEADER
-#! START_WB_HEADER
-READER_TYPE MULTI_READER
-MULTI_READER_TYPE{0} GEOJSON
-MULTI_READER_KEYWORD{0} GEOJSON_1
-MULTI_READER_GEN_DIRECTIVES{0} EXPOSE_ATTRS_GROUP,,USE_SEARCH_ENVELOPE,NO,CLIP_TO_ENVELOPE,NO,FLATTEN_MODE,ALL_LEVELS,SEARCH_ENVELOPE_MAXY,0,NETWORK_AUTHENTICATION,,SEARCH_ENVELOPE_COORDINATE_SYSTEM,,GEOJSON_EXPOSE_FORMAT_ATTRS,,USE_BASENAME_AS_DEFAULT_FEATURE_TYPE,Yes,_MERGE_SCHEMAS,YES,SEARCH_ENVELOPE_MINX,0,SEARCH_ENVELOPE_MINY,0,SEARCH_ENVELOPE_MAXX,0
-MULTI_READER_TYPE{1} POSTGIS
-MULTI_READER_KEYWORD{1} POSTGIS_1
-MULTI_READER_GEN_DIRECTIVES{1} USE_TRUE_POSTGIS_TYPES,yes,CLIP_TO_ENVELOPE,NO,SEARCH_ENVELOPE_MAXY,0,POSTGIS_EXPOSE_FORMAT_ATTRS,,SEARCH_ENVELOPE_COORDINATE_SYSTEM,,ADVANCED,,QUERY_FEATURE_TYPES_FOR_MERGE_FILTERS,Yes,USE_SEARCH_ENVELOPE,NO,FEATURES_PER_FETCH,10000,DISABLE_COLLECTION_SPLITTING,yes,SEARCH_ENVELOPE_MINX,0,SEARCH_ENVELOPE_MINY,0,EXPOSE_ATTRS_GROUP,,SEARCH_METHOD,MBR_OVERLAPS,NAMED_CONNECTION,breizhpolenovoatredadeg,SEARCH_ENVELOPE_MAXX,0,READ_TIME_WITH_TIMEZONE,Yes,TABLELIST,public.osm_communes,END_SQL,,WHERE_CLAUSE,,_MERGE_SCHEMAS,YES,SCHEMAS_FOR_TABLE_LISTING,public,BEGIN_SQL,
-MULTI_READER_TYPE{2} NULL
-MULTI_READER_FORMAT{2} POSTGIS
-MULTI_READER_KEYWORD{2} POSTGIS_2
-MULTI_READER_GEN_DIRECTIVES{2} USE_TRUE_POSTGIS_TYPES,yes,CLIP_TO_ENVELOPE,NO,SEARCH_ENVELOPE_MAXY,0,POSTGIS_EXPOSE_FORMAT_ATTRS,,SEARCH_ENVELOPE_COORDINATE_SYSTEM,,ADVANCED,,QUERY_FEATURE_TYPES_FOR_MERGE_FILTERS,Yes,USE_SEARCH_ENVELOPE,NO,FEATURES_PER_FETCH,10000,DISABLE_COLLECTION_SPLITTING,yes,SEARCH_ENVELOPE_MINX,0,SEARCH_ENVELOPE_MINY,0,EXPOSE_ATTRS_GROUP,,SEARCH_METHOD,MBR_OVERLAPS,NAMED_CONNECTION,breizhpolenovoatredadeg,SEARCH_ENVELOPE_MAXX,0,READ_TIME_WITH_TIMEZONE,Yes,TABLELIST,public.osm_municipalities,END_SQL,,WHERE_CLAUSE,,_MERGE_SCHEMAS,YES,SCHEMAS_FOR_TABLE_LISTING,public,BEGIN_SQL,
-WRITER_TYPE MULTI_WRITER
-MULTI_WRITER_DATASET_ORDER BY_ID
-MULTI_WRITER_FIRST_WRITER_ID 0
-MULTI_WRITER_TYPE{0} POSTGIS
-MULTI_WRITER_KEYWORD{0} POSTGIS_3
-#! END_WB_HEADER
-#! START_WB_HEADER
-MACRO WB_KEYWORD "GEOJSON_1"
-#! END_WB_HEADER
-#! START_SOURCE_HEADER GEOJSON GEOJSON_1
-# The dataset this mapping file was generated from was:
-#! END_SOURCE_HEADER
-#! START_WB_HEADER
-DEFAULT_MACRO SourceDataset
-INCLUDE [ if {{$(SourceDataset)} != ""} { \
- puts {DEFAULT_MACRO SourceDataset_GEOJSON_1 $(SourceDataset)} \
- } ]
-#! END_WB_HEADER
-#! START_SOURCE_HEADER GEOJSON GEOJSON_1
-DEFAULT_MACRO SourceDataset_GEOJSON_1 $(SourceDataset_GEOJSON)
-GUI FILE_OR_URL SourceDataset_GEOJSON_1 GeoJSON_Documents(*.json;*.geojson)|*.json;*.geojson|All_Files|* Source GeoJSON File or URL:
-DEFAULT_MACRO GEOJSON_IN_FLATTEN_MODE_GEOJSON_1 ALL_LEVELS
-GEOJSON_1_FLATTEN_MODE "$(GEOJSON_IN_FLATTEN_MODE_GEOJSON_1)"
-DEFAULT_MACRO GEOJSON_IN_EXPOSE_ATTRS_GROUP_GEOJSON_1
-GEOJSON_1_EXPOSE_ATTRS_GROUP "$(GEOJSON_IN_EXPOSE_ATTRS_GROUP_GEOJSON_1)"
-DEFAULT_MACRO GEOJSON_IN_USE_BASENAME_AS_DEFAULT_FEATURE_TYPE_GEOJSON_1 Yes
-GEOJSON_1_USE_BASENAME_AS_DEFAULT_FEATURE_TYPE "$(GEOJSON_IN_USE_BASENAME_AS_DEFAULT_FEATURE_TYPE_GEOJSON_1)"
-# Include this file in source setting section to add external search envelope processing
-# Zero as a default means we don't do any search -- this makes workbench happier
-DEFAULT_MACRO GEOJSON_IN_USE_SEARCH_ENVELOPE_GEOJSON_1 NO
-GEOJSON_1_USE_SEARCH_ENVELOPE "$(GEOJSON_IN_USE_SEARCH_ENVELOPE_GEOJSON_1)"
-GUI ACTIVEDISCLOSUREGROUP GEOJSON_IN_USE_SEARCH_ENVELOPE_GEOJSON_1 GEOJSON_IN_SEARCH_ENVELOPE_MINX_GEOJSON_1%GEOJSON_IN_SEARCH_ENVELOPE_MINY_GEOJSON_1%GEOJSON_IN_SEARCH_ENVELOPE_MAXX_GEOJSON_1%GEOJSON_IN_SEARCH_ENVELOPE_MAXY_GEOJSON_1%GEOJSON_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_GEOJSON_1%GEOJSON_IN_CLIP_TO_ENVELOPE_GEOJSON_1%GEOJSON_IN_SEARCH_METHOD%GEOJSON_IN_SEARCH_METHOD_FILTER%GEOJSON_IN_SEARCH_ORDER%GEOJSON_IN_SEARCH_FEATURE%GEOJSON_IN_DUMMY_SEARCH_ENVELOPE_PARAMETER Use Search Envelope
-# ===========================================================================
-GUI LOOKUP GEOJSON_IN_SEARCH_ENVELOPE_MINX_GEOJSON_1 ,0
-DEFAULT_MACRO GEOJSON_IN_SEARCH_ENVELOPE_MINX_GEOJSON_1 0
-GEOJSON_1_SEARCH_ENVELOPE "$(GEOJSON_IN_SEARCH_ENVELOPE_MINX_GEOJSON_1)"
-GUI OPTIONAL FLOAT GEOJSON_IN_SEARCH_ENVELOPE_MINX_GEOJSON_1 Minimum X:
-# ===========================================================================
-GUI LOOKUP GEOJSON_IN_SEARCH_ENVELOPE_MINY_GEOJSON_1 ,0
-DEFAULT_MACRO GEOJSON_IN_SEARCH_ENVELOPE_MINY_GEOJSON_1 0
-GEOJSON_1_SEARCH_ENVELOPE "$(GEOJSON_IN_SEARCH_ENVELOPE_MINY_GEOJSON_1)"
-GUI OPTIONAL FLOAT GEOJSON_IN_SEARCH_ENVELOPE_MINY_GEOJSON_1 Minimum Y:
-# ===========================================================================
-GUI LOOKUP GEOJSON_IN_SEARCH_ENVELOPE_MAXX_GEOJSON_1 ,0
-DEFAULT_MACRO GEOJSON_IN_SEARCH_ENVELOPE_MAXX_GEOJSON_1 0
-GEOJSON_1_SEARCH_ENVELOPE "$(GEOJSON_IN_SEARCH_ENVELOPE_MAXX_GEOJSON_1)"
-GUI OPTIONAL FLOAT GEOJSON_IN_SEARCH_ENVELOPE_MAXX_GEOJSON_1 Maximum X:
-# ===========================================================================
-GUI LOOKUP GEOJSON_IN_SEARCH_ENVELOPE_MAXY_GEOJSON_1 ,0
-DEFAULT_MACRO GEOJSON_IN_SEARCH_ENVELOPE_MAXY_GEOJSON_1 0
-GEOJSON_1_SEARCH_ENVELOPE "$(GEOJSON_IN_SEARCH_ENVELOPE_MAXY_GEOJSON_1)"
-GUI OPTIONAL FLOAT GEOJSON_IN_SEARCH_ENVELOPE_MAXY_GEOJSON_1 Maximum Y:
-# ===========================================================================
-GUI LOOKUP GEOJSON_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_GEOJSON_1 ,
-DEFAULT_MACRO GEOJSON_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_GEOJSON_1
-GEOJSON_1_SEARCH_ENVELOPE "$(GEOJSON_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_GEOJSON_1)"
-GUI OPTIONAL COORDSYS GEOJSON_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_GEOJSON_1 Search Envelope Coordinate System:
-# ===========================================================================
-# BUG18999: We now have a soft clip to fall back on like native spatial index
-# thus we are reintroducing the clip to envelop as an option for users.
-# Defualt to soft clip as per the existing database readers we are emulating
-GUI LOOKUP GEOJSON_IN_CLIP_TO_ENVELOPE_GEOJSON_1 ,NO
-DEFAULT_MACRO GEOJSON_IN_CLIP_TO_ENVELOPE_GEOJSON_1 NO
-GEOJSON_1_CLIP_TO_ENVELOPE "$(GEOJSON_IN_CLIP_TO_ENVELOPE_GEOJSON_1)"
-GUI OPTIONAL CHECKBOX GEOJSON_IN_CLIP_TO_ENVELOPE_GEOJSON_1 YES%NO Clip to Search Envelope
-# ===========================================================================
-DEFAULT_MACRO GEOJSON_IN_NETWORK_AUTHENTICATION_GEOJSON_1
-GEOJSON_1_NETWORK_AUTHENTICATION "$(GEOJSON_IN_NETWORK_AUTHENTICATION_GEOJSON_1)"
-GUI OPTIONAL AUTHENTICATOR GEOJSON_IN_NETWORK_AUTHENTICATION_GEOJSON_1 CONTAINER%GROUP%CONTAINER_TITLE%"Network Authentication"%PROMPT_TYPE%NETWORK Network Authentication
-# ============================================================================
-DEFAULT_MACRO GEOJSON_IN_ATTRIBUTE_READING_GEOJSON_1 ALL
-GEOJSON_1_ATTRIBUTE_READING "$(GEOJSON_IN_ATTRIBUTE_READING_GEOJSON_1)"
-# ============================================================================
-GEOJSON_1_GENERATE_FME_BUILD_NUM 18592
-GEOJSON_1_DATASET "$(SourceDataset_GEOJSON_1)"
-#! END_SOURCE_HEADER
-#! START_WB_HEADER
-MACRO WB_KEYWORD "POSTGIS_1"
-#! END_WB_HEADER
-#! START_SOURCE_HEADER POSTGIS POSTGIS_1
-# The dataset this mapping file was generated from was:
-#! END_SOURCE_HEADER
-#! START_WB_HEADER
-DEFAULT_MACRO SourceDataset
-INCLUDE [ if {{$(SourceDataset)} != ""} { \
- puts {DEFAULT_MACRO SourceDataset_POSTGIS_1 $(SourceDataset)} \
- } ]
-#! END_WB_HEADER
-#! START_SOURCE_HEADER POSTGIS POSTGIS_1
-DEFAULT_MACRO SourceDataset_POSTGIS_1 $(SourceDataset_POSTGIS)
-GUI NAMED_DB_CONNECTION_ENCODED SourceDataset_POSTGIS_1 FMT:POSTGIS Connection:
-DEFAULT_MACRO POSTGIS_IN_QUERY_FEATURE_TYPES_FOR_MERGE_FILTERS_POSTGIS_1 Yes
-POSTGIS_1_QUERY_FEATURE_TYPES_FOR_MERGE_FILTERS "$(POSTGIS_IN_QUERY_FEATURE_TYPES_FOR_MERGE_FILTERS_POSTGIS_1)"
-DEFAULT_MACRO POSTGIS_IN_READ_TIME_WITH_TIMEZONE_POSTGIS_1 Yes
-POSTGIS_1_READ_TIME_WITH_TIMEZONE "$(POSTGIS_IN_READ_TIME_WITH_TIMEZONE_POSTGIS_1)"
-DEFAULT_MACRO POSTGIS_IN_DISABLE_COLLECTION_SPLITTING_POSTGIS_1 yes
-POSTGIS_1_DISABLE_COLLECTION_SPLITTING "$(POSTGIS_IN_DISABLE_COLLECTION_SPLITTING_POSTGIS_1)"
-DEFAULT_MACRO POSTGIS_IN_USE_TRUE_POSTGIS_TYPES_POSTGIS_1 yes
-POSTGIS_1_USE_TRUE_POSTGIS_TYPES "$(POSTGIS_IN_USE_TRUE_POSTGIS_TYPES_POSTGIS_1)"
-DEFAULT_MACRO POSTGIS_IN_FME_CONNECTION_GROUP_POSTGIS_1
-GUI OPTIONAL DISCLOSUREGROUP POSTGIS_IN_FME_CONNECTION_GROUP_POSTGIS_1 POSTGIS_IN_NAMED_CONNECTION%POSTGIS_IN_SCHEMAS_FOR_TABLE_LISTING_POSTGIS_1 Database Connection
-DEFAULT_MACRO POSTGIS_IN_FME_GROUP_NAMED1_POSTGIS_1
-GUI OPTIONAL DISCLOSUREGROUP POSTGIS_IN_FME_GROUP_NAMED1_POSTGIS_1 POSTGIS_IN_TABLELIST%POSTGIS_IN_WHERE_CLAUSE_POSTGIS_1 Constraints
-DEFAULT_MACRO POSTGIS_IN_WHERE_CLAUSE_POSTGIS_1
-POSTGIS_1_WHERE_CLAUSE "$(POSTGIS_IN_WHERE_CLAUSE_POSTGIS_1)"
-GUI OPTIONAL TEXT_EDIT_SQL_CFG POSTGIS_IN_WHERE_CLAUSE_POSTGIS_1 MODE,WHERE;FORMAT,POSTGIS WHERE Clause:
-DEFAULT_MACRO POSTGIS_IN_EXPOSE_ATTRS_GROUP_POSTGIS_1
-POSTGIS_1_EXPOSE_ATTRS_GROUP "$(POSTGIS_IN_EXPOSE_ATTRS_GROUP_POSTGIS_1)"
-# Include this file in source setting section to add native search envelope processing
-# Zero as a default means we don't do any search -- this makes workbench happier
-DEFAULT_MACRO POSTGIS_IN_USE_SEARCH_ENVELOPE_POSTGIS_1 NO
-POSTGIS_1_USE_SEARCH_ENVELOPE "$(POSTGIS_IN_USE_SEARCH_ENVELOPE_POSTGIS_1)"
-GUI ACTIVEDISCLOSUREGROUP POSTGIS_IN_USE_SEARCH_ENVELOPE_POSTGIS_1 POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_1%POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_1%POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_1%POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_1%POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_1%POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_1%POSTGIS_IN_SEARCH_METHOD_POSTGIS_1%POSTGIS_IN_SEARCH_METHOD_FILTER%POSTGIS_IN_SEARCH_ORDER%POSTGIS_IN_SEARCH_FEATURE%POSTGIS_IN_DUMMY_SEARCH_ENVELOPE_PARAMETER Use Search Envelope
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_1 ,0
-DEFAULT_MACRO POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_1 0
-POSTGIS_1_SEARCH_ENVELOPE "$(POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_1)"
-GUI OPTIONAL FLOAT POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_1 Minimum X:
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_1 ,0
-DEFAULT_MACRO POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_1 0
-POSTGIS_1_SEARCH_ENVELOPE "$(POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_1)"
-GUI OPTIONAL FLOAT POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_1 Minimum Y:
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_1 ,0
-DEFAULT_MACRO POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_1 0
-POSTGIS_1_SEARCH_ENVELOPE "$(POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_1)"
-GUI OPTIONAL FLOAT POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_1 Maximum X:
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_1 ,0
-DEFAULT_MACRO POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_1 0
-POSTGIS_1_SEARCH_ENVELOPE "$(POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_1)"
-GUI OPTIONAL FLOAT POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_1 Maximum Y:
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_1 ,
-DEFAULT_MACRO POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_1
-POSTGIS_1_SEARCH_ENVELOPE "$(POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_1)"
-GUI OPTIONAL COORDSYS POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_1 Search Envelope Coordinate System:
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_1 ,NO
-DEFAULT_MACRO POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_1 NO
-POSTGIS_1_CLIP_TO_ENVELOPE "$(POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_1)"
-GUI OPTIONAL CHECKBOX POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_1 YES%NO Clip to Search Envelope
-DEFAULT_MACRO POSTGIS_IN_SEARCH_METHOD_POSTGIS_1 MBR_OVERLAPS
-POSTGIS_1_SEARCH_METHOD "$(POSTGIS_IN_SEARCH_METHOD_POSTGIS_1)"
-GUI LOOKUP_CHOICE POSTGIS_IN_SEARCH_METHOD_POSTGIS_1 MBROverlaps,MBR_OVERLAPS%Contains,CONTAINS%Disjoint,DISJOINT%Equals,EQUALS%Intersects,INTERSECTS%Overlaps,OVERLAPS%Touches,TOUCHES%Within,WITHIN Search Method:
-GUI LOOKUP POSTGIS_IN_SEARCH_METHOD_POSTGIS_1 ,MBR_OVERLAPS
-DEFAULT_MACRO POSTGIS_IN_ADVANCED_POSTGIS_1
-GUI OPTIONAL DISCLOSUREGROUP POSTGIS_IN_ADVANCED_POSTGIS_1 POSTGIS_IN_FEATURES_PER_FETCH_POSTGIS_1%POSTGIS_IN_BEGIN_SQL_POSTGIS_1%POSTGIS_IN_END_SQL_POSTGIS_1 Advanced
-DEFAULT_MACRO POSTGIS_IN_FEATURES_PER_FETCH_POSTGIS_1 10000
-POSTGIS_1_FEATURES_PER_FETCH "$(POSTGIS_IN_FEATURES_PER_FETCH_POSTGIS_1)"
-GUI FLOAT POSTGIS_IN_FEATURES_PER_FETCH_POSTGIS_1 Number Of Records To Fetch At A Time
-DEFAULT_MACRO POSTGIS_IN_BEGIN_SQL_POSTGIS_1
-POSTGIS_1_BEGIN_SQL "$(POSTGIS_IN_BEGIN_SQL_POSTGIS_1)"
-GUI OPTIONAL TEXT_EDIT_SQL_CFG POSTGIS_IN_BEGIN_SQL_POSTGIS_1 MODE,SQL;FORMAT,POSTGIS SQL To Run Before Read
-DEFAULT_MACRO POSTGIS_IN_END_SQL_POSTGIS_1
-POSTGIS_1_END_SQL "$(POSTGIS_IN_END_SQL_POSTGIS_1)"
-GUI OPTIONAL TEXT_EDIT_SQL_CFG POSTGIS_IN_END_SQL_POSTGIS_1 MODE,SQL;FORMAT,POSTGIS SQL To Run After Read
-# ============================================================================
-DEFAULT_MACRO POSTGIS_IN_ATTRIBUTE_READING_POSTGIS_1 DEFLINE_ATTRS
-POSTGIS_1_ATTRIBUTE_READING "$(POSTGIS_IN_ATTRIBUTE_READING_POSTGIS_1)"
-# ============================================================================
-POSTGIS_1_GENERATE_FME_BUILD_NUM 18592
-DEFAULT_MACRO POSTGIS_IN_SCHEMAS_FOR_TABLE_LISTING_POSTGIS_1 public
-GUI OPTIONAL TEXT POSTGIS_IN_SCHEMAS_FOR_TABLE_LISTING_POSTGIS_1 Schemas for Table Listing:
-POSTGIS_1_SCHEMAS_FOR_TABLE_LISTING $(POSTGIS_IN_SCHEMAS_FOR_TABLE_LISTING_POSTGIS_1)
-POSTGIS_1_DATASET "$(SourceDataset_POSTGIS_1)"
-#! END_SOURCE_HEADER
-#! START_WB_HEADER
-MACRO WB_KEYWORD "POSTGIS_2"
-#! END_WB_HEADER
-#! START_SOURCE_HEADER POSTGIS POSTGIS_2
-# The dataset this mapping file was generated from was:
-#! END_SOURCE_HEADER
-#! START_WB_HEADER
-DEFAULT_MACRO SourceDataset
-INCLUDE [ if {{$(SourceDataset)} != ""} { \
- puts {DEFAULT_MACRO SourceDataset_POSTGIS_2 $(SourceDataset)} \
- } ]
-#! END_WB_HEADER
-#! START_SOURCE_HEADER POSTGIS POSTGIS_2
-DEFAULT_MACRO SourceDataset_POSTGIS_2 $(SourceDataset_POSTGIS_3)
-GUI NAMED_DB_CONNECTION_ENCODED SourceDataset_POSTGIS_2 FMT:POSTGIS Connection:
-DEFAULT_MACRO POSTGIS_IN_QUERY_FEATURE_TYPES_FOR_MERGE_FILTERS_POSTGIS_2 Yes
-POSTGIS_2_QUERY_FEATURE_TYPES_FOR_MERGE_FILTERS "$(POSTGIS_IN_QUERY_FEATURE_TYPES_FOR_MERGE_FILTERS_POSTGIS_2)"
-DEFAULT_MACRO POSTGIS_IN_READ_TIME_WITH_TIMEZONE_POSTGIS_2 Yes
-POSTGIS_2_READ_TIME_WITH_TIMEZONE "$(POSTGIS_IN_READ_TIME_WITH_TIMEZONE_POSTGIS_2)"
-DEFAULT_MACRO POSTGIS_IN_DISABLE_COLLECTION_SPLITTING_POSTGIS_2 yes
-POSTGIS_2_DISABLE_COLLECTION_SPLITTING "$(POSTGIS_IN_DISABLE_COLLECTION_SPLITTING_POSTGIS_2)"
-DEFAULT_MACRO POSTGIS_IN_USE_TRUE_POSTGIS_TYPES_POSTGIS_2 yes
-POSTGIS_2_USE_TRUE_POSTGIS_TYPES "$(POSTGIS_IN_USE_TRUE_POSTGIS_TYPES_POSTGIS_2)"
-DEFAULT_MACRO POSTGIS_IN_FME_CONNECTION_GROUP_POSTGIS_2
-GUI OPTIONAL DISCLOSUREGROUP POSTGIS_IN_FME_CONNECTION_GROUP_POSTGIS_2 POSTGIS_IN_NAMED_CONNECTION%POSTGIS_IN_SCHEMAS_FOR_TABLE_LISTING_POSTGIS_2 Database Connection
-DEFAULT_MACRO POSTGIS_IN_FME_GROUP_NAMED1_POSTGIS_2
-GUI OPTIONAL DISCLOSUREGROUP POSTGIS_IN_FME_GROUP_NAMED1_POSTGIS_2 POSTGIS_IN_TABLELIST%POSTGIS_IN_WHERE_CLAUSE_POSTGIS_2 Constraints
-DEFAULT_MACRO POSTGIS_IN_WHERE_CLAUSE_POSTGIS_2
-POSTGIS_2_WHERE_CLAUSE "$(POSTGIS_IN_WHERE_CLAUSE_POSTGIS_2)"
-GUI OPTIONAL TEXT_EDIT_SQL_CFG POSTGIS_IN_WHERE_CLAUSE_POSTGIS_2 MODE,WHERE;FORMAT,POSTGIS WHERE Clause:
-DEFAULT_MACRO POSTGIS_IN_EXPOSE_ATTRS_GROUP_POSTGIS_2
-POSTGIS_2_EXPOSE_ATTRS_GROUP "$(POSTGIS_IN_EXPOSE_ATTRS_GROUP_POSTGIS_2)"
-# Include this file in source setting section to add native search envelope processing
-# Zero as a default means we don't do any search -- this makes workbench happier
-DEFAULT_MACRO POSTGIS_IN_USE_SEARCH_ENVELOPE_POSTGIS_2 NO
-POSTGIS_2_USE_SEARCH_ENVELOPE "$(POSTGIS_IN_USE_SEARCH_ENVELOPE_POSTGIS_2)"
-GUI ACTIVEDISCLOSUREGROUP POSTGIS_IN_USE_SEARCH_ENVELOPE_POSTGIS_2 POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_2%POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_2%POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_2%POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_2%POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_2%POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_2%POSTGIS_IN_SEARCH_METHOD_POSTGIS_2%POSTGIS_IN_SEARCH_METHOD_FILTER%POSTGIS_IN_SEARCH_ORDER%POSTGIS_IN_SEARCH_FEATURE%POSTGIS_IN_DUMMY_SEARCH_ENVELOPE_PARAMETER Use Search Envelope
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_2 ,0
-DEFAULT_MACRO POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_2 0
-POSTGIS_2_SEARCH_ENVELOPE "$(POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_2)"
-GUI OPTIONAL FLOAT POSTGIS_IN_SEARCH_ENVELOPE_MINX_POSTGIS_2 Minimum X:
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_2 ,0
-DEFAULT_MACRO POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_2 0
-POSTGIS_2_SEARCH_ENVELOPE "$(POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_2)"
-GUI OPTIONAL FLOAT POSTGIS_IN_SEARCH_ENVELOPE_MINY_POSTGIS_2 Minimum Y:
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_2 ,0
-DEFAULT_MACRO POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_2 0
-POSTGIS_2_SEARCH_ENVELOPE "$(POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_2)"
-GUI OPTIONAL FLOAT POSTGIS_IN_SEARCH_ENVELOPE_MAXX_POSTGIS_2 Maximum X:
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_2 ,0
-DEFAULT_MACRO POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_2 0
-POSTGIS_2_SEARCH_ENVELOPE "$(POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_2)"
-GUI OPTIONAL FLOAT POSTGIS_IN_SEARCH_ENVELOPE_MAXY_POSTGIS_2 Maximum Y:
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_2 ,
-DEFAULT_MACRO POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_2
-POSTGIS_2_SEARCH_ENVELOPE "$(POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_2)"
-GUI OPTIONAL COORDSYS POSTGIS_IN_SEARCH_ENVELOPE_COORDINATE_SYSTEM_POSTGIS_2 Search Envelope Coordinate System:
-# ===========================================================================
-GUI LOOKUP POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_2 ,NO
-DEFAULT_MACRO POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_2 NO
-POSTGIS_2_CLIP_TO_ENVELOPE "$(POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_2)"
-GUI OPTIONAL CHECKBOX POSTGIS_IN_CLIP_TO_ENVELOPE_POSTGIS_2 YES%NO Clip to Search Envelope
-DEFAULT_MACRO POSTGIS_IN_SEARCH_METHOD_POSTGIS_2 MBR_OVERLAPS
-POSTGIS_2_SEARCH_METHOD "$(POSTGIS_IN_SEARCH_METHOD_POSTGIS_2)"
-GUI LOOKUP_CHOICE POSTGIS_IN_SEARCH_METHOD_POSTGIS_2 MBROverlaps,MBR_OVERLAPS%Contains,CONTAINS%Disjoint,DISJOINT%Equals,EQUALS%Intersects,INTERSECTS%Overlaps,OVERLAPS%Touches,TOUCHES%Within,WITHIN Search Method:
-GUI LOOKUP POSTGIS_IN_SEARCH_METHOD_POSTGIS_2 ,MBR_OVERLAPS
-DEFAULT_MACRO POSTGIS_IN_ADVANCED_POSTGIS_2
-GUI OPTIONAL DISCLOSUREGROUP POSTGIS_IN_ADVANCED_POSTGIS_2 POSTGIS_IN_FEATURES_PER_FETCH_POSTGIS_2%POSTGIS_IN_BEGIN_SQL_POSTGIS_2%POSTGIS_IN_END_SQL_POSTGIS_2 Advanced
-DEFAULT_MACRO POSTGIS_IN_FEATURES_PER_FETCH_POSTGIS_2 10000
-POSTGIS_2_FEATURES_PER_FETCH "$(POSTGIS_IN_FEATURES_PER_FETCH_POSTGIS_2)"
-GUI FLOAT POSTGIS_IN_FEATURES_PER_FETCH_POSTGIS_2 Number Of Records To Fetch At A Time
-DEFAULT_MACRO POSTGIS_IN_BEGIN_SQL_POSTGIS_2
-POSTGIS_2_BEGIN_SQL "$(POSTGIS_IN_BEGIN_SQL_POSTGIS_2)"
-GUI OPTIONAL TEXT_EDIT_SQL_CFG POSTGIS_IN_BEGIN_SQL_POSTGIS_2 MODE,SQL;FORMAT,POSTGIS SQL To Run Before Read
-DEFAULT_MACRO POSTGIS_IN_END_SQL_POSTGIS_2
-POSTGIS_2_END_SQL "$(POSTGIS_IN_END_SQL_POSTGIS_2)"
-GUI OPTIONAL TEXT_EDIT_SQL_CFG POSTGIS_IN_END_SQL_POSTGIS_2 MODE,SQL;FORMAT,POSTGIS SQL To Run After Read
-# ============================================================================
-DEFAULT_MACRO POSTGIS_IN_ATTRIBUTE_READING_POSTGIS_2 DEFLINE_ATTRS
-POSTGIS_2_ATTRIBUTE_READING "$(POSTGIS_IN_ATTRIBUTE_READING_POSTGIS_2)"
-# ============================================================================
-POSTGIS_2_GENERATE_FME_BUILD_NUM 18592
-DEFAULT_MACRO POSTGIS_IN_SCHEMAS_FOR_TABLE_LISTING_POSTGIS_2 public
-GUI OPTIONAL TEXT POSTGIS_IN_SCHEMAS_FOR_TABLE_LISTING_POSTGIS_2 Schemas for Table Listing:
-POSTGIS_2_SCHEMAS_FOR_TABLE_LISTING $(POSTGIS_IN_SCHEMAS_FOR_TABLE_LISTING_POSTGIS_2)
-POSTGIS_2_DATASET "$(SourceDataset_POSTGIS_2)"
-#! END_SOURCE_HEADER
-#! START_WB_HEADER
-MACRO WB_KEYWORD "POSTGIS_3"
-#! END_WB_HEADER
-#! START_DEST_HEADER POSTGIS POSTGIS_3
-#! END_DEST_HEADER
-#! START_WB_HEADER
-DEFAULT_MACRO DestDataset
-INCLUDE [ if {"$(DestDataset)" != ""} { \
- puts {DEFAULT_MACRO DestDataset_POSTGIS_3 $(DestDataset)} \
- } ]
-#! END_WB_HEADER
-#! START_DEST_HEADER POSTGIS POSTGIS_3
-DEFAULT_MACRO DestDataset_POSTGIS_3 $(DestDataset_POSTGIS)
-GUI NAMED_DB_CONNECTION_ENCODED DestDataset_POSTGIS_3 FMT:POSTGIS Connection:
-POSTGIS_3_PLUGIN_MAX_CHANNELS 1
-DEFAULT_MACRO POSTGIS_OUT_STRICT_TEMPORAL_TYPE_HANDLING_POSTGIS_3 Yes
-POSTGIS_3_STRICT_TEMPORAL_TYPE_HANDLING "$(POSTGIS_OUT_STRICT_TEMPORAL_TYPE_HANDLING_POSTGIS_3)"
-DEFAULT_MACRO POSTGIS_OUT_FME_CONNECTION_GROUP_POSTGIS_3
-GUI OPTIONAL DISCLOSUREGROUP POSTGIS_OUT_FME_CONNECTION_GROUP_POSTGIS_3 POSTGIS_OUT_NAMED_CONNECTION Database Connection
-# ============================================================================
-# Write geometry (planar) or geography (geodetic) column
-DEFAULT_MACRO POSTGIS_OUT_SPATIAL_COLUMN_TYPE_POSTGIS_3 geometry
-POSTGIS_3_SPATIAL_COLUMN_TYPE "$(POSTGIS_OUT_SPATIAL_COLUMN_TYPE_POSTGIS_3)"
-# ============================================================================
-# Default spatial column name
-DEFAULT_MACRO POSTGIS_OUT_SPATIAL_COLUMN_NAME_POSTGIS_3 geom
-POSTGIS_3_SPATIAL_COLUMN_NAME "$(POSTGIS_OUT_SPATIAL_COLUMN_NAME_POSTGIS_3)"
-DEFAULT_MACRO POSTGIS_OUT_GENERIC_GEOMETRY_POSTGIS_3 yes
-POSTGIS_3_GENERIC_GEOMETRY "$(POSTGIS_OUT_GENERIC_GEOMETRY_POSTGIS_3)"
-DEFAULT_MACRO POSTGIS_OUT_COORDINATE_SYSTEM_GRANULARITY_POSTGIS_3 FEATURE_TYPE
-POSTGIS_3_COORDINATE_SYSTEM_GRANULARITY "$(POSTGIS_OUT_COORDINATE_SYSTEM_GRANULARITY_POSTGIS_3)"
-DEFAULT_MACRO POSTGIS_OUT_ADVANCED_POSTGIS_3
-GUI OPTIONAL DISCLOSUREGROUP POSTGIS_OUT_ADVANCED_POSTGIS_3 POSTGIS_OUT_BULK_COPY_POSTGIS_3%POSTGIS_OUT_INSERT_TEXT_GEOMETRY_POSTGIS_3%POSTGIS_OUT_START_TRANSACTION_POSTGIS_3%POSTGIS_OUT_TRANSACTION_INTERVAL_POSTGIS_3%POSTGIS_OUT_BEGIN_SQL_POSTGIS_3%POSTGIS_OUT_END_SQL_POSTGIS_3 Advanced
-DEFAULT_MACRO POSTGIS_OUT_BULK_COPY_POSTGIS_3 YES
-POSTGIS_3_BULK_COPY "$(POSTGIS_OUT_BULK_COPY_POSTGIS_3)"
-GUI CHOICE POSTGIS_OUT_BULK_COPY_POSTGIS_3 YES%NO Bulk Insert
-DEFAULT_MACRO POSTGIS_OUT_START_TRANSACTION_POSTGIS_3 0
-POSTGIS_3_START_TRANSACTION "$(POSTGIS_OUT_START_TRANSACTION_POSTGIS_3)"
-GUI TEXT POSTGIS_OUT_START_TRANSACTION_POSTGIS_3 Starting Feature:
-DEFAULT_MACRO POSTGIS_OUT_TRANSACTION_INTERVAL_POSTGIS_3 1000
-POSTGIS_3_TRANSACTION_INTERVAL "$(POSTGIS_OUT_TRANSACTION_INTERVAL_POSTGIS_3)"
-GUI TEXT POSTGIS_OUT_TRANSACTION_INTERVAL_POSTGIS_3 Features Per Transaction
-DEFAULT_MACRO POSTGIS_OUT_INSERT_TEXT_GEOMETRY_POSTGIS_3 NO
-POSTGIS_3_INSERT_TEXT_GEOMETRY "$(POSTGIS_OUT_INSERT_TEXT_GEOMETRY_POSTGIS_3)"
-GUI CHOICE POSTGIS_OUT_INSERT_TEXT_GEOMETRY_POSTGIS_3 YES%NO Insert WKT
-DEFAULT_MACRO POSTGIS_OUT_BEGIN_SQL_POSTGIS_3
-POSTGIS_3_BEGIN_SQL "$(POSTGIS_OUT_BEGIN_SQL_POSTGIS_3)"
-GUI OPTIONAL TEXT_EDIT_SQL_CFG POSTGIS_OUT_BEGIN_SQL_POSTGIS_3 MODE,SQL;FORMAT,POSTGIS SQL To Run Before Write
-DEFAULT_MACRO POSTGIS_OUT_END_SQL_POSTGIS_3
-POSTGIS_3_END_SQL "$(POSTGIS_OUT_END_SQL_POSTGIS_3)"
-GUI OPTIONAL TEXT_EDIT_SQL_CFG POSTGIS_OUT_END_SQL_POSTGIS_3 MODE,SQL;FORMAT,POSTGIS SQL To Run After Write
-# ============================================================================
-POSTGIS_3_GENERATE_FME_BUILD_NUM 18592
-POSTGIS_3_DATASET "$(DestDataset_POSTGIS_3)"
-#! END_DEST_HEADER
-#! START_WB_HEADER
-#! END_WB_HEADER
-#! END_HEADER
-
-LOG_FILENAME "$(FME_MF_DIR)load_osm_municipalities.log"
-LOG_APPEND NO
-LOG_FILTER_MASK -1
-LOG_MAX_FEATURES 200
-LOG_MAX_RECORDED_FEATURES 200
-FME_REPROJECTION_ENGINE FME
-FME_IMPLICIT_CSMAP_REPROJECTION_MODE Auto
-FME_GEOMETRY_HANDLING Enhanced
-FME_STROKE_MAX_DEVIATION 0
-DEFAULT_MACRO DATASET_KEYWORD_GEOJSON_1 GEOJSON_1
-DEFAULT_MACRO DATASET_KEYWORD_POSTGIS_1 POSTGIS_1
-DEFAULT_MACRO DATASET_KEYWORD_POSTGIS_2 POSTGIS_2
-DEFAULT_MACRO DATASET_KEYWORD_POSTGIS_3 POSTGIS_3
-# -------------------------------------------------------------------------
-
-GEOJSON_1_READER_META_ATTRIBUTES fme_feature_type
-
-# -------------------------------------------------------------------------
-
-POSTGIS_1_READER_META_ATTRIBUTES fme_feature_type
-
-# -------------------------------------------------------------------------
-
-POSTGIS_2_READER_META_ATTRIBUTES fme_feature_type
-
-# -------------------------------------------------------------------------
-
-GEOJSON_1_COORDINATE_SYSTEM EPSG:4326
-POSTGIS_1_COORDINATE_SYSTEM EPSG:2154
-POSTGIS_2_COORDINATE_SYSTEM EPSG:4326
-POSTGIS_3_COORDINATE_SYSTEM EPSG:2154
-MULTI_READER_CONTINUE_ON_READER_FAILURE No
-
-# -------------------------------------------------------------------------
-
-MACRO WORKSPACE_NAME load_osm_municipalities
-MACRO FME_VIEWER_APP fmedatainspector
-# -------------------------------------------------------------------------
-
-INCLUDE [ if {[info exists env(FME_TEMP)] && [file isdirectory $env(FME_TEMP)]} {set gVisualizerTemp $env(FME_TEMP)} elseif {[info exists env(TEMP)] && [file isdirectory $env(TEMP)]} {set gVisualizerTemp $env(TEMP)} elseif { $tcl_platform(platform) == "unix" } {set gVisualizerTemp "/tmp"} else {set gVisualizerTemp c:}; regsub -all {[ ,&]} {$(WORKSPACE_NAME)} {_} wsname; set gVisualizerTemp $gVisualizerTemp/${wsname}_[clock format [clock seconds] -format %H%M%S]; puts "MACRO WORKSPACE_TEMP_DIR $gVisualizerTemp";
-MACRO VISUALIZER_FEATURE_FILE $(WORKSPACE_TEMP_DIR)/inspector.ffs
-MACRO VISUALIZER_SCHEMA_FILE $(WORKSPACE_TEMP_DIR)/inspector.fsc
-MACRO VISUALIZER_CREATE_SPATIAL_INDEX YES
-# -------------------------------------------------------------------------
-GEOJSON_1_DEF osm_br_municipalities fid string osm_id int type string admin_level int name string name_br string source_name_br string admincode string postcode string wikidata string x float y float
-# -------------------------------------------------------------------------
-
-FACTORY_DEF * RoutingFactory FACTORY_NAME "Router and Unexpected Input Remover" COMMAND_PARM_EVALUATION SINGLE_PASS INPUT FEATURE_TYPE * ROUTE GEOJSON GEOJSON_1::osm_br_municipalities multi_reader_keyword,$(DATASET_KEYWORD_GEOJSON_1) TO FME_GENERIC ::osm_br_municipalities ALIAS_GEOMETRY ROUTE POSTGIS POSTGIS_1::public.osm_communes multi_reader_keyword,$(DATASET_KEYWORD_POSTGIS_1) TO FME_GENERIC ::public.osm_communes ALIAS_GEOMETRY MERGE_INPUT Yes OUTPUT ROUTED FEATURE_TYPE *
-GEOJSON_1_MERGE_DEF GEOJSON_1::osm_br_municipalities EXACT osm_br_municipalities
-POSTGIS_1_MERGE_DEF POSTGIS_1::public.osm_communes EXACT public.osm_communes DEFLINE postgis_sql_where_clause,,postgis_sql_statement,,gid,serialPrimaryKey,insee,varchar80,nom,varchar80,wikipedia,varchar80,surf_ha,numeric1000500
-POSTGIS_2_MERGE_DEF POSTGIS_2::public.osm_municipalities EXACT public.osm_municipalities
-# -------------------------------------------------------------------------
-
-FACTORY_DEF * TeeFactory FACTORY_NAME "public.osm_municipalities (POSTGIS_2) Splitter" INPUT FEATURE_TYPE public.osm_municipalities
-# -------------------------------------------------------------------------
-
-FACTORY_DEF * TeeFactory FACTORY_NAME "osm_br_municipalities (GEOJSON_1) Splitter" INPUT FEATURE_TYPE osm_br_municipalities OUTPUT FEATURE_TYPE osm_br_municipalities_GEOJSON_1_0_JeGDo5IkWAk= OUTPUT FEATURE_TYPE osm_br_municipalities_GEOJSON_1_1_sJ4ZSCrUtiU=
-# -------------------------------------------------------------------------
-
-FACTORY_DEF * TeeFactory FACTORY_NAME "public.osm_communes (POSTGIS_1) Splitter" INPUT FEATURE_TYPE public.osm_communes OUTPUT FEATURE_TYPE public.osm_communes_POSTGIS_1_0_tNcmooN2Yyg= OUTPUT FEATURE_TYPE public.osm_communes_POSTGIS_1_1_p/0m0MVLUpA=
-DEFAULT_MACRO WB_CURRENT_CONTEXT
-# -------------------------------------------------------------------------
-# Assumption is that the workspace temp dir has been already set and created. See controldefs.cpp - ControlDefs::writeVisualizerTempDir
-DEFAULT_MACRO WORKSPACE_TEMP_DIR
-INCLUDE [ set safeName "[regsub -all {[^a-zA-Z0-9]} {public.osm_communes} _]_[expr round(rand() * 1000000)]_[clock clicks -milliseconds]"; puts "MACRO SAFE_FFS_NAME $safeName"; ]
-FACTORY_DEF {*} InspectorFactory FACTORY_NAME public.osm_communes_Prepper COMMAND_PARM_EVALUATION SINGLE_PASS INPUT FEATURE_TYPE public.osm_communes_POSTGIS_1_1_p/0m0MVLUpA= GROUP_ATTRIBUTE __inspector_feature_type_attr__ GROUP_BY { } GROUP_ATTRIBUTE_PREFIX { public.osm_communes } RASTER_REDUCTION NoReduction POINT_CLOUD_REDUCTION NO_THINNING OUTPUT RESULT FEATURE_TYPE __viewme__
-# Now route all the features into the recorder, changing their
-# feature type to the transformer name so that they view nicely
-DEFAULT_MACRO VISUALIZER_FEATURE_FILE $(WORKSPACE_TEMP_DIR)/$(SAFE_FFS_NAME).ffs
-DEFAULT_MACRO VISUALIZER_CREATE_SPATIAL_INDEX NO
-# [PR#45549] The Data Inspector will limit the maximum number of features
-# it reads on WIN32, so we will correspondingly limit the number of
-# features we record here using the MAX_FEATURES_TO_RECORD directive.
-FACTORY_DEF * RecorderFactory FACTORY_NAME public.osm_communes_Recorder COMMAND_PARM_EVALUATION SINGLE_PASS INPUT FEATURE_TYPE __viewme__ _wb_termination_feature Yes @FeatureType(TERMINATOR_@Value(_wb_termination_xformer)) INPUT FEATURE_TYPE __viewme__ @FeatureType(@Value(__inspector_feature_type_attr__)) @RemoveAttributes(__inspector_feature_type_attr__) FEATURE_FILE "$(VISUALIZER_FEATURE_FILE)" STORE_SCANNED_SCHEMA YES CREATE_SPATIAL_INDEX "$(VISUALIZER_CREATE_SPATIAL_INDEX)" INSPECTOR "$(VISUALIZER_CREATE_SPATIAL_INDEX)" FSC_SCHEMA gid,varchar255,insee,varchar255,nom,varchar255,wikipedia,varchar255,surf_ha,varchar255 MODE RECORD STORE_SCANNED_METADATA RECORD_DIRECTLY_TO_DISK YES MAX_FEATURES_TO_RECORD WIN32 2000000
-# -------------------------------------------------------------------------
-# Assumption is that the workspace temp dir has been already set and created. See controldefs.cpp - ControlDefs::writeVisualizerTempDir
-DEFAULT_MACRO WORKSPACE_TEMP_DIR
-INCLUDE [ set safeName "[regsub -all {[^a-zA-Z0-9]} {osm_br_municipalities} _]_[expr round(rand() * 1000000)]_[clock clicks -milliseconds]"; puts "MACRO SAFE_FFS_NAME $safeName"; ]
-FACTORY_DEF {*} InspectorFactory FACTORY_NAME osm_br_municipalities_Prepper COMMAND_PARM_EVALUATION SINGLE_PASS INPUT FEATURE_TYPE osm_br_municipalities_GEOJSON_1_1_sJ4ZSCrUtiU= GROUP_ATTRIBUTE __inspector_feature_type_attr__ GROUP_BY { } GROUP_ATTRIBUTE_PREFIX { osm_br_municipalities } RASTER_REDUCTION NoReduction POINT_CLOUD_REDUCTION NO_THINNING OUTPUT RESULT FEATURE_TYPE __viewme__
-# Now route all the features into the recorder, changing their
-# feature type to the transformer name so that they view nicely
-DEFAULT_MACRO VISUALIZER_FEATURE_FILE $(WORKSPACE_TEMP_DIR)/$(SAFE_FFS_NAME).ffs
-DEFAULT_MACRO VISUALIZER_CREATE_SPATIAL_INDEX NO
-# [PR#45549] The Data Inspector will limit the maximum number of features
-# it reads on WIN32, so we will correspondingly limit the number of
-# features we record here using the MAX_FEATURES_TO_RECORD directive.
-FACTORY_DEF * RecorderFactory FACTORY_NAME osm_br_municipalities_Recorder COMMAND_PARM_EVALUATION SINGLE_PASS INPUT FEATURE_TYPE __viewme__ _wb_termination_feature Yes @FeatureType(TERMINATOR_@Value(_wb_termination_xformer)) INPUT FEATURE_TYPE __viewme__ @FeatureType(@Value(__inspector_feature_type_attr__)) @RemoveAttributes(__inspector_feature_type_attr__) FEATURE_FILE "$(VISUALIZER_FEATURE_FILE)" STORE_SCANNED_SCHEMA YES CREATE_SPATIAL_INDEX "$(VISUALIZER_CREATE_SPATIAL_INDEX)" INSPECTOR "$(VISUALIZER_CREATE_SPATIAL_INDEX)" FSC_SCHEMA fid,varchar255,osm_id,varchar255,type,varchar255,admin_level,varchar255,name,varchar255,name_br,varchar255,source_name_br,varchar255,postcode,varchar255,wikidata,varchar255,x,varchar255,y,varchar255 MODE RECORD STORE_SCANNED_METADATA RECORD_DIRECTLY_TO_DISK YES MAX_FEATURES_TO_RECORD WIN32 2000000
-# -------------------------------------------------------------------------
-# Wipe out the source setting if it was untouched from the default setting
-DEFAULT_MACRO Reprojector_SOURCE "EPSG:4326"
-INCLUDE [if { {EPSG:4326} == {Read from feature} } { puts {MACRO Reprojector_SOURCE} } ]
-FACTORY_DEF * TeeFactory FACTORY_NAME Reprojector INPUT FEATURE_TYPE osm_br_municipalities_GEOJSON_1_0_JeGDo5IkWAk= OUTPUT FEATURE_TYPE Reprojector_REPROJECTED @Reproject($(Reprojector_SOURCE),"EPSG:2154",NearestNeighbor,PreserveCells,Reprojector,"COORD_SYS_WARNING",RASTER_TOLERANCE,0.0)
-# -------------------------------------------------------------------------
-FACTORY_DEF {*} OverlayFactory FACTORY_NAME PointOnAreaOverlayer INPUT POINT FEATURE_TYPE Reprojector_REPROJECTED INPUT POLYGON FEATURE_TYPE public.osm_communes_POSTGIS_1_0_tNcmooN2Yyg= OVERLAP_COUNT_ATTRIBUTE "_overlaps" DEAGGREGATE_INPUT Yes MERGE_ATTRS "YES" ATTR_ACCUM_MODE "HANDLE_CONFLICT" ATTR_CONFLICT_RES "ORIGINAL_IF_CONFLICT" INCOMING_PREFIX "" LIST_NAME "" LIST_ATTRS_TO_INCLUDE { } LIST_ATTRS_TO_INCLUDE_MODE CANDIDATE_LIST_NAME "" CANDIDATE_LIST_ATTRS_TO_INCLUDE { } CANDIDATE_LIST_ATTRS_TO_INCLUDE_MODE MODE COMPLETE OVERLAY_TYPE POINT_ON_AREA POLYS_FIRST "NO" REJECT_INVALID_GEOM YES OUTPUT POLYGON FEATURE_TYPE PointOnAreaOverlayer_AREA OUTPUT ILLEGAL_GEOM FEATURE_TYPE PointOnAreaOverlayer_
-FACTORY_DEF * TeeFactory FACTORY_NAME "PointOnAreaOverlayer AREA Splitter" INPUT FEATURE_TYPE PointOnAreaOverlayer_AREA OUTPUT FEATURE_TYPE PointOnAreaOverlayer_AREA_0_fZ27ZbHrf4w= OUTPUT FEATURE_TYPE PointOnAreaOverlayer_AREA_1_uUi26aghoD0=
-DEFAULT_MACRO _WB_BYPASS_TERMINATION No
-FACTORY_DEF * TeeFactory FACTORY_NAME PointOnAreaOverlayer_ INPUT FEATURE_TYPE PointOnAreaOverlayer_ OUTPUT FAILED FEATURE_TYPE * @Abort(ENCODED, PointOnAreaOverlayeroutputaRejectedfeature.TocontinuetranslationwhenfeaturesarerejectedchangeWorkspaceParametersTranslationRejectedFeatureHandlingtoContinueTranslation)
-# -------------------------------------------------------------------------
-FACTORY_DEF {*} AttrSetFactory COMMAND_PARM_EVALUATION SINGLE_PASS FACTORY_NAME AttributeCopier INPUT FEATURE_TYPE PointOnAreaOverlayer_AREA_1_uUi26aghoD0= ATTRSET_CREATE_DIRECTIVES _PROPAGATE_MISSING_FDIV ATTR_ACTION { "name" "name_fr" "COPY" "" } OUTPUT OUTPUT FEATURE_TYPE AttributeCopier_OUTPUT
-# -------------------------------------------------------------------------
-FACTORY_DEF {*} AttrSetFactory COMMAND_PARM_EVALUATION SINGLE_PASS FACTORY_NAME AttributeRenamer INPUT FEATURE_TYPE AttributeCopier_OUTPUT ATTRSET_CREATE_DIRECTIVES _PROPAGATE_MISSING_FDIV ATTR_ACTION { "insee" "admincode" "RENAME_SET_DEFAULT" "" } OUTPUT OUTPUT FEATURE_TYPE AttributeRenamer_OUTPUT
-# -------------------------------------------------------------------------
-# Assumption is that the workspace temp dir has been already set and created. See controldefs.cpp - ControlDefs::writeVisualizerTempDir
-DEFAULT_MACRO WORKSPACE_TEMP_DIR
-INCLUDE [ set safeName "[regsub -all {[^a-zA-Z0-9]} {PointOnAreaOverlayer_Area} _]_[expr round(rand() * 1000000)]_[clock clicks -milliseconds]"; puts "MACRO SAFE_FFS_NAME $safeName"; ]
-FACTORY_DEF {*} InspectorFactory FACTORY_NAME PointOnAreaOverlayer_Area_Prepper COMMAND_PARM_EVALUATION SINGLE_PASS INPUT FEATURE_TYPE PointOnAreaOverlayer_AREA_0_fZ27ZbHrf4w= GROUP_ATTRIBUTE __inspector_feature_type_attr__ GROUP_BY { } GROUP_ATTRIBUTE_PREFIX { PointOnAreaOverlayer_Area } RASTER_REDUCTION NoReduction POINT_CLOUD_REDUCTION NO_THINNING OUTPUT RESULT FEATURE_TYPE __viewme__
-# Now route all the features into the recorder, changing their
-# feature type to the transformer name so that they view nicely
-DEFAULT_MACRO VISUALIZER_FEATURE_FILE $(WORKSPACE_TEMP_DIR)/$(SAFE_FFS_NAME).ffs
-DEFAULT_MACRO VISUALIZER_CREATE_SPATIAL_INDEX NO
-# [PR#45549] The Data Inspector will limit the maximum number of features
-# it reads on WIN32, so we will correspondingly limit the number of
-# features we record here using the MAX_FEATURES_TO_RECORD directive.
-FACTORY_DEF * RecorderFactory FACTORY_NAME PointOnAreaOverlayer_Area_Recorder COMMAND_PARM_EVALUATION SINGLE_PASS INPUT FEATURE_TYPE __viewme__ _wb_termination_feature Yes @FeatureType(TERMINATOR_@Value(_wb_termination_xformer)) INPUT FEATURE_TYPE __viewme__ @FeatureType(@Value(__inspector_feature_type_attr__)) @RemoveAttributes(__inspector_feature_type_attr__) FEATURE_FILE "$(VISUALIZER_FEATURE_FILE)" STORE_SCANNED_SCHEMA YES CREATE_SPATIAL_INDEX "$(VISUALIZER_CREATE_SPATIAL_INDEX)" INSPECTOR "$(VISUALIZER_CREATE_SPATIAL_INDEX)" FSC_SCHEMA fid,varchar255,osm_id,varchar255,type,varchar255,admin_level,varchar255,name,varchar255,name_br,varchar255,source_name_br,varchar255,postcode,varchar