[GRASS-SVN] r31833 - grass/trunk/imagery/i.smap/shapiro
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 23 17:16:11 EDT 2008
Author: glynn
Date: 2008-06-23 17:16:11 -0400 (Mon, 23 Jun 2008)
New Revision: 31833
Modified:
grass/trunk/imagery/i.smap/shapiro/write_img.c
Log:
Remove bogus zero->null conversion
Modified: grass/trunk/imagery/i.smap/shapiro/write_img.c
===================================================================
--- grass/trunk/imagery/i.smap/shapiro/write_img.c 2008-06-23 17:42:52 UTC (rev 31832)
+++ grass/trunk/imagery/i.smap/shapiro/write_img.c 2008-06-23 21:16:11 UTC (rev 31833)
@@ -19,14 +19,9 @@
if (!parms->quiet) G_percent (row, nrows, 2);
for (col = 0; col < ncols; col++)
{
- if(0 && img[row][col] == 0)
- G_set_c_null_value(&files->outbuf[col], 1);
- else
- {
- int class = (int)img[row][col];
- G_debug(3, "class: [%d] row/col: [%d][%d]", class, row, col);
- files->outbuf[col] = (CELL)S->ClassSig[class].classnum;
- }
+ int class = (int)img[row][col];
+ G_debug(3, "class: [%d] row/col: [%d][%d]", class, row, col);
+ files->outbuf[col] = (CELL)S->ClassSig[class].classnum;
}
G_put_raster_row (files->output_fd, files->outbuf, CELL_TYPE);
}
More information about the grass-commit
mailing list