Skip to content

Commit

Permalink
corrected dem result test
Browse files Browse the repository at this point in the history
  • Loading branch information
iFabio2 committed Nov 27, 2014
1 parent 1e1ea03 commit d8e7925
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
5 changes: 2 additions & 3 deletions src/main/app-resources/srtmdem/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ do
mv dem.grd $dem_name.grd
mv dem_grad.png $dem_name.png
mv dem_grad.kml $dem_name.kml
[ ! -e $TMPDIR/$dem_name.grd ] && exit $ERR_NODEM

} || {

Expand All @@ -91,11 +92,9 @@ do
# the folder /application/SRTM/data contains the SRTM tiles in tif format
ciop-log "INFO" "Generating DEM"
SRTM.py $lat $lon $TMPDIR/$dem_name -D /data/SRTM41/ $option 1>&2
[ ! -e $TMPDIR/$dem_name.dem ] && exit $ERR_NODEM
}

# check the output
[ ! -e $TMPDIR/$dem_name.dem ] && exit $ERR_NODEM

# save the bandwidth
ciop-log "INFO" "Compressing DEM"
tar cfz $dem_name.dem.tgz $dem_name*
Expand Down

0 comments on commit d8e7925

Please sign in to comment.