[GRASS-SVN] r62818 - grass/trunk/raster/r.in.poly
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 19 15:00:25 PST 2014
Author: annakrat
Date: 2014-11-19 15:00:25 -0800 (Wed, 19 Nov 2014)
New Revision: 62818
Modified:
grass/trunk/raster/r.in.poly/getformat.c
Log:
r.in.poly: fix writing cell value 0
Modified: grass/trunk/raster/r.in.poly/getformat.c
===================================================================
--- grass/trunk/raster/r.in.poly/getformat.c 2014-11-19 22:06:38 UTC (rev 62817)
+++ grass/trunk/raster/r.in.poly/getformat.c 2014-11-19 23:00:25 UTC (rev 62818)
@@ -30,6 +30,9 @@
if (sscanf(buf + 1, "%ld", &x) != 1)
continue;
cat = (CELL) x;
+ /* if we want to write zeros, we must use CELL */
+ if (cat == 0)
+ return USE_CELL;
if (first) {
first = 0;
max = cat;
More information about the grass-commit
mailing list