Created
March 31, 2021 21:59
-
-
Save millzpaugh/4c1b68be3d2a3132abc3842cb3399303 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file="./final/merge.shp" | |
for i in $(ls *.shp) | |
do | |
if [ -f "$file" ] | |
then | |
echo "creating final/merge.shp" | |
ogr2ogr -f 'bathymetry shapefile' -update -append $file $i -nln merge | |
else | |
echo "merging……" | |
ogr2ogr -f "bathymetry shapefile" $file $i | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment