Export geojson pour merour
This commit is contained in:
parent
c631570cd6
commit
6b19ac795e
|
@ -321,11 +321,18 @@ SET the_geom = pk_recales.the_geom
|
||||||
FROM pk_recales
|
FROM pk_recales
|
||||||
WHERE phase_5_pk.pk_id = pk_recales.pk_id ;"""
|
WHERE phase_5_pk.pk_id = pk_recales.pk_id ;"""
|
||||||
|
|
||||||
print("fait")
|
print(" fait")
|
||||||
|
|
||||||
|
# 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")
|
||||||
|
|
||||||
#
|
|
||||||
# TODO : export geojson pour merour
|
|
||||||
#
|
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
print("")
|
print("")
|
||||||
|
|
Loading…
Reference in a new issue