Skip to content

Commit

Permalink
fixed bug in force-cube when layername of vector is not given correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfrantz committed Jan 12, 2024
1 parent 6d57afb commit 35fb78f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bash/force-cube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,14 @@ for i in "$@"; do
fi
fi

# is given layer name present?
if [ "$RASTER" == "false" ]; then
$VECTOR_INFO_EXE $FINP $LAYER &> /dev/null
if [ $? -ne 0 ]; then
echoerr "requested layer was not found."; exit 1
fi
fi

# bounding box
if [ "$RASTER" == "true" ]; then
FTMP="$FTMP.vrt"
Expand Down

0 comments on commit 35fb78f

Please sign in to comment.