Browse Source

r3.to.rast: open map according to type (fixes https://trac.osgeo.org/grass/changeset/68874 for CELL)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68875 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 9 years ago
parent
commit
1a5d675c6d
1 changed files with 1 additions and 4 deletions
  1. 1 4
      raster3d/r3.to.rast/main.c

+ 1 - 4
raster3d/r3.to.rast/main.c

@@ -334,10 +334,7 @@ int main(int argc, char *argv[])
             G_fatal_error(_("Raster map %d Filename: %s already exists. Use the flag --o to overwrite."),
                       i + 1, RasterFileName);
 
-        if (output_type == FCELL_TYPE)
-            fd[i] = open_output_map(RasterFileName, FCELL_TYPE);
-        else if (output_type == DCELL_TYPE)
-            fd[i] = open_output_map(RasterFileName, DCELL_TYPE);
+        fd[i] = open_output_map(RasterFileName, output_type);
 
     }