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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 4 07:09:15 PST 2014


Author: lucadelu
Date: 2014-02-04 07:09:15 -0800 (Tue, 04 Feb 2014)
New Revision: 58878

Modified:
   grass/branches/releasebranch_6_4/raster/r.li/r.li.setup/sample_area_vector.sh
Log:
r.li.setup: removed duplicate cat for same features

Modified: grass/branches/releasebranch_6_4/raster/r.li/r.li.setup/sample_area_vector.sh
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.li/r.li.setup/sample_area_vector.sh	2014-02-04 10:11:04 UTC (rev 58877)
+++ grass/branches/releasebranch_6_4/raster/r.li/r.li.setup/sample_area_vector.sh	2014-02-04 15:09:15 UTC (rev 58878)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -x
 #
 # This program is free software under the GPL (>=v2)
 # Read the COPYING file that comes with GRASS for details.
@@ -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