52 lines
1.3 KiB
Bash
52 lines
1.3 KiB
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
set -u
|
||
|
|
||
|
PSQL=/usr/bin/psql
|
||
|
DB_HOST=192.168.56.131
|
||
|
DB_NAME=redadeg
|
||
|
DB_USER=redadeg
|
||
|
|
||
|
|
||
|
#cd /data/www/vhosts/ar-redadeg_openstreetmap_bzh/htdocs/scripts/
|
||
|
|
||
|
|
||
|
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||
|
echo " Création des données phase 3"
|
||
|
echo ""
|
||
|
|
||
|
# création des PK auto par découpage des tronçons de la phase 2
|
||
|
/Library/FME/2018.1/fme phase_3_crea_pk_auto.fmw
|
||
|
|
||
|
# en sortie on obtient :
|
||
|
# phase_3_pk_auto = couche de points
|
||
|
# phase_3_pk_sens_verif = couche de ligne direct PK à PK
|
||
|
|
||
|
|
||
|
|
||
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||
|
# et on exporte en geojson pour umap
|
||
|
|
||
|
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||
|
echo " Exports"
|
||
|
echo ""
|
||
|
|
||
|
echo " exports geojson"
|
||
|
echo ""
|
||
|
|
||
|
rm data/phase_3_pk_auto.geojson
|
||
|
ogr2ogr -f "GeoJSON" data/phase_3_pk_auto.geojson PG:"host=$DB_HOST user=redadeg password=redadeg dbname=redadeg" phase_3_pk_auto_4326
|
||
|
rm data/phase_3_pk_sens_verif.geojson
|
||
|
ogr2ogr -f "GeoJSON" data/phase_3_pk_sens_verif.geojson PG:"host=$DB_HOST user=redadeg password=redadeg dbname=redadeg" phase_3_pk_sens_verif_4326
|
||
|
|
||
|
echo " fait"
|
||
|
echo ""
|
||
|
|
||
|
echo ""
|
||
|
echo ""
|
||
|
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||
|
echo " F I N"
|
||
|
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||
|
echo ""
|