[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-commit
Subject:    [GRASS-SVN] r36552 -
From:       svn_grass () osgeo ! org
Date:       2009-03-31 21:22:40
Message-ID: 20090331212240.B44D7E014EB () lists ! osgeo ! org
[Download RAW message or body]

Author: neteler
Date: 2009-03-31 17:22:40 -0400 (Tue, 31 Mar 2009)
New Revision: 36552

Modified:
   grass/branches/develbranch_6/scripts/v.centroids/v.centroids
Log:
Don't use locale dependent output for parsing

Modified: grass/branches/develbranch_6/scripts/v.centroids/v.centroids
===================================================================
--- grass/branches/develbranch_6/scripts/v.centroids/v.centroids	2009-03-31 21:22:34 UTC (rev 36551)
+++ grass/branches/develbranch_6/scripts/v.centroids/v.centroids	2009-03-31 21:22:40 UTC (rev 36552)
@@ -82,7 +82,7 @@
 if [ "$GIS_OPT_OPTION" = "add" ] ; then
 
    # check we have boundaries
-   NUM_BOUND=`v.info "$GIS_OPT_INPUT" | grep "Number of boundaries:" | cut -f2 -d: | awk '{print $1}'`
+   NUM_BOUND=`v.info -t "$GIS_OPT_INPUT" | grep boundaries | cut -d'=' -f2`
 
    if [ $NUM_BOUND -eq 0 ] ; then
        g.message -e "Input vector map contains no boundaries."

_______________________________________________
grass-commit mailing list
grass-commit@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic