[GRASS-SVN] r58882 - grass/branches/develbranch_6/raster/r.li/r.li.setup

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 4 12:11:12 PST 2014


Author: neteler
Date: 2014-02-04 12:11:11 -0800 (Tue, 04 Feb 2014)
New Revision: 58882

Modified:
   grass/branches/develbranch_6/raster/r.li/r.li.setup/sample_area_vector.sh
Log:
r.li.setup: remove duplicate cat for same features (port of r58878)

Modified: grass/branches/develbranch_6/raster/r.li/r.li.setup/sample_area_vector.sh
===================================================================
--- grass/branches/develbranch_6/raster/r.li/r.li.setup/sample_area_vector.sh	2014-02-04 20:10:11 UTC (rev 58881)
+++ grass/branches/develbranch_6/raster/r.li/r.li.setup/sample_area_vector.sh	2014-02-04 20:11:11 UTC (rev 58882)
@@ -56,7 +56,7 @@
 ##############################################################
 
 #using v.category instead of v.build with cdump
-v.category input=$GIS_OPT_vector option=print > $TMP.cat
+v.category input=$GIS_OPT_vector option=print | sort | uniq > $TMP.cat
 
 #get input vector name
 GIS_OPT_input_vector=`echo $GIS_OPT_vector| cut -d'@' -f 1`



More information about the grass-commit mailing list