Skip to content
Snippets Groups Projects
Commit 42b31f11 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Append shapefile center

Include a test so shapefile center is skipped if not present. The
triplet of shapefiles has possibly become a collection of shapefiles
since commit 4e2ab0a6.
parent 8d625d5f
No related branches found
No related tags found
No related merge requests found
...@@ -6,17 +6,20 @@ ...@@ -6,17 +6,20 @@
if (($# != 2)) if (($# != 2))
then then
echo "Usage: shp_tr_append.sh from_triplet to_triplet" echo "Usage: shp_coll_append.sh from_coll to_coll"
exit 1 exit 1
fi fi
set -e set -e
##set -x ##set -x
for my_base in extremum outermost_contour max_speed_contour for my_base in extremum outermost_contour max_speed_contour center
do do
shpcat $1/$my_base $2/$my_base if [[ -f $1/$my_base.shp ]]
dbfcat $1/$my_base $2/$my_base then
shpcat $1/$my_base $2/$my_base
dbfcat $1/$my_base $2/$my_base
fi
done done
i2=`tail -1 $2/ishape_last.txt` i2=`tail -1 $2/ishape_last.txt`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment