[GRASS-SVN] r60154 - grass-addons/grass6/raster/r.connectivity.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 9 00:24:48 PDT 2014


Author: sbl
Date: 2014-05-09 00:24:48 -0700 (Fri, 09 May 2014)
New Revision: 60154

Modified:
   grass-addons/grass6/raster/r.connectivity.distance/r.connectivity.distance
Log:
Fix problems in cut syntax (r.connectivity.distance)

Modified: grass-addons/grass6/raster/r.connectivity.distance/r.connectivity.distance
===================================================================
--- grass-addons/grass6/raster/r.connectivity.distance/r.connectivity.distance	2014-05-09 05:13:05 UTC (rev 60153)
+++ grass-addons/grass6/raster/r.connectivity.distance/r.connectivity.distance	2014-05-09 07:24:48 UTC (rev 60154)
@@ -329,7 +329,7 @@
 
 ###Extract centroids and export data as network vertices (output will not contain centroids of multipolygons)
 #Write centroids to nodes input text file to R (igraph)
-v.to.db -p --quiet map=$PATCHES option=coor | cut -f1,2,3 -d'|' --output-delimiter=';' >> ${FOLDER}/vertices_part_1.csv
+v.to.db -p --quiet map=$PATCHES option=coor | awk -v FS="|" -v OFS=";" '{print $1, $2, $3}' >> ${FOLDER}/vertices_part_1.csv
 #Write centroids to nodes input text file to R (igraph)
 v.db.select -c map=$PATCHES columns="cat,${POP_PROXY}" fs=";" >> ${FOLDER}/vertices_part_2.csv
 



More information about the grass-commit mailing list