Skip to content

Commit

Permalink
Update 2_osm2igeotopo25.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
igeofr authored Dec 9, 2019
1 parent b9a12fd commit 5d001fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/2_osm2igeotopo25.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
#OSM2IGEOTOPO - FRANCE
##########################

cd /osm2igeo/data_in/osm2igeo/
cd /osm2igeotopo/data_in/osm2igeo/
for f in *.zip;
do
unzip -o ${f%%.*}.zip; #Décompresse le dossier
yes | cp -rf ${f%%.*}/* ./; #Déplace les fichiers
rm -r ./${f%%.*}
rm ${f%%.*}.zip
cd /osm2igeo/
cd /osm2igeotopo/
echo 'Commune 500m'
ogr2ogr -f "ESRI Shapefile" data_temp/1_COMMUNE_DISSOLVE.shp data_in/osm2igeo/H_OSM_ADMINISTRATIF/COMMUNE.shp -dialect sqlite -sql "SELECT (st_buffer(ST_Union(geometry),500)) FROM COMMUNE"
echo 'Clip DSM'
Expand Down

0 comments on commit 5d001fc

Please sign in to comment.