Browse Source

Remove bogus zero->null conversion

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31833 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 17 years ago
parent
commit
fb7bafb966
1 changed files with 3 additions and 8 deletions
  1. 3 8
      imagery/i.smap/shapiro/write_img.c

+ 3 - 8
imagery/i.smap/shapiro/write_img.c

@@ -19,14 +19,9 @@ int write_img (
 	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);
     }