From e790659159b24e9f95ddda37d943755d6bd0473d Mon Sep 17 00:00:00 2001 From: Mael REBOUX Date: Sat, 15 Feb 2020 14:42:04 +0100 Subject: [PATCH] =?UTF-8?q?passage=20=C3=A0=20curl=20+=20=C3=A9crasement?= =?UTF-8?q?=20des=20fichiers=20existants?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/load_communes_osm_fr.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/load_communes_osm_fr.sh b/scripts/load_communes_osm_fr.sh index 8be8399..48f690a 100755 --- a/scripts/load_communes_osm_fr.sh +++ b/scripts/load_communes_osm_fr.sh @@ -15,10 +15,9 @@ 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://osm13.openstreetmap.fr/~cquest/openfla/export/communes-20200101-shp.zip -#wget pour voir la progression +curl -sS http://osm13.openstreetmap.fr/~cquest/openfla/export/communes-20200101-shp.zip > communes-20200101-shp.zip -unzip communes-20200101-shp.zip +unzip -o communes-20200101-shp.zip ogr2ogr -f "PostgreSQL" PG:"host=$DB_HOST user=$DB_USER password=$DB_PASSWD dbname=$DB_NAME" communes-20200101.shp -nln osm_communes_4326 -lco GEOMETRY_NAME=the_geom -explodecollections -overwrite