[GRASS-SVN] r48517 - grass-addons/vector/v.out.ascii.mat

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 28 01:42:41 EDT 2011


Author: hamish
Date: 2011-09-27 22:42:41 -0700 (Tue, 27 Sep 2011)
New Revision: 48517

Modified:
   grass-addons/vector/v.out.ascii.mat/v.out.ascii.mat
Log:
compatibility with modern v.info

Modified: grass-addons/vector/v.out.ascii.mat/v.out.ascii.mat
===================================================================
--- grass-addons/vector/v.out.ascii.mat/v.out.ascii.mat	2011-09-28 01:24:30 UTC (rev 48516)
+++ grass-addons/vector/v.out.ascii.mat/v.out.ascii.mat	2011-09-28 05:42:41 UTC (rev 48517)
@@ -100,6 +100,11 @@
 
 
 MAP_IS_3D=`v.info "$GIS_OPT_INPUT" | grep "Map is 3D" | cut -f2 -d: | awk '{print $1}'`
+if [ "$MAP_IS_3D" = "No" ] ; then
+   MAP_IS_3D=0
+elif [ "$MAP_IS_3D" = "Yes" ] ; then
+   MAP_IS_3D=1
+fi
 
 if [ "$MAP_IS_3D" -eq 0 ] ; then
    NAN_STR="NaN\tNaN"



More information about the grass-commit mailing list