[GRASS-SVN] r62944 - grass/branches/releasebranch_6_4/scripts/v.rast.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 25 07:05:46 PST 2014
Author: lucadelu
Date: 2014-11-25 07:05:46 -0800 (Tue, 25 Nov 2014)
New Revision: 62944
Modified:
grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats
Log:
v.rast.stats: fix bug with infinity value (#2343)
Modified: grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats 2014-11-25 14:56:06 UTC (rev 62943)
+++ grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats 2014-11-25 15:05:46 UTC (rev 62944)
@@ -331,10 +331,10 @@
if [ $GIS_FLAG_E -eq 1 ] ; then
r.univar -t -e map="$RASTER" \
zones="${VECTOR}_$TMPNAME" percentile="$GIS_OPT_PERCENTILE" | \
- cut -f1,3,5-8,10-13,15-18 -d'|' | sed 's+nan+NULL+g' > "$STATSTMP"
+ cut -f1,3,5-8,10-13,15-18 -d'|' | sed -e 's+nan+NULL+g' -e 's+inf+NULL+g' > "$STATSTMP"
else
r.univar -t map="$RASTER" zones="${VECTOR}_$TMPNAME" | \
- cut -f1,3,5-8,10-13 -d'|' | sed 's+nan+NULL+g' > "$STATSTMP"
+ cut -f1,3,5-8,10-13 -d'|' | sed -e 's+nan+NULL+g' -e 's+inf+NULL+g' > "$STATSTMP"
fi
if [ $GIS_FLAG_E -eq 1 ] && [ "$DBFDRIVER" -eq 1 ] ; then
More information about the grass-commit
mailing list