[GRASS-SVN] r68875 - grass/trunk/raster3d/r3.to.rast

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 6 14:58:36 PDT 2016


Author: wenzeslaus
Date: 2016-07-06 14:58:36 -0700 (Wed, 06 Jul 2016)
New Revision: 68875

Modified:
   grass/trunk/raster3d/r3.to.rast/main.c
Log:
r3.to.rast: open map according to type (fixes r68874 for CELL)

Modified: grass/trunk/raster3d/r3.to.rast/main.c
===================================================================
--- grass/trunk/raster3d/r3.to.rast/main.c	2016-07-06 21:14:44 UTC (rev 68874)
+++ grass/trunk/raster3d/r3.to.rast/main.c	2016-07-06 21:58:36 UTC (rev 68875)
@@ -334,10 +334,7 @@
             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);
 
     }
 



More information about the grass-commit mailing list