[GRASS-SVN] r59413 - grass/branches/releasebranch_6_4/raster/r.li/r.li.setup

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 27 06:43:58 PDT 2014


Author: lucadelu
Date: 2014-03-27 06:43:57 -0700 (Thu, 27 Mar 2014)
New Revision: 59413

Modified:
   grass/branches/releasebranch_6_4/raster/r.li/r.li.setup/masked_area_selection.sh
Log:
r.li.setup: fix creation of configuration file using circle

Modified: grass/branches/releasebranch_6_4/raster/r.li/r.li.setup/masked_area_selection.sh
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.li/r.li.setup/masked_area_selection.sh	2014-03-27 13:43:20 UTC (rev 59412)
+++ grass/branches/releasebranch_6_4/raster/r.li/r.li.setup/masked_area_selection.sh	2014-03-27 13:43:57 UTC (rev 59413)
@@ -163,6 +163,10 @@
 # show the selected area
 d.rast -o map="tmp_rli_mask.$$" --quiet
 
+input_vector=tmp_rli_mask.$$
+CAT=$$
+export input_vector CAT
+
 name="$TMP.val"
 export name
 
@@ -173,7 +177,7 @@
 r_name=`cat "$name" | cut -f2 -d' '`
 
 
-if [ "$ok" -eq 1 ] ; then
+if [ -n "$ok" ] ; then
     mask_name="rli_samp_${STYLE}_${r_name}"
     # r.mask + 'g.region zoom= align=' + 'r.mapcalc cropmap=map' would be cleaner?
     r.to.vect input="tmp_rli_mask.$$" output="tmp_rli_mask_v$$" feature=area --quiet



More information about the grass-commit mailing list