Export geojson pour merour

This commit is contained in:
MaelREBOUX 2021-12-14 22:46:47 +01:00
parent c631570cd6
commit 6b19ac795e

View file

@ -323,9 +323,16 @@ WHERE phase_5_pk.pk_id = pk_recales.pk_id ;"""
print(" fait")
#
# TODO : export geojson pour merour
#
# on finit par l'export geojson pour merour
print(" Export geojson pour merour")
export_cmd = ["ogr2ogr", "-f", "GeoJSON",
f"../data/{millesime}/phase_5_pk.geojson",
f"PG:host={db_redadeg_host} port={db_redadeg_port} user={db_redadeg_user} password={db_redadeg_passwd} dbname={db_redadeg_db}",
"phase_5_pk", "-t_srs", "EPSG:4326"]
# on exporte
subprocess.check_output(export_cmd)
print(" fait")
print("")
print("")