[GRASS-SVN] r59677 - grass/trunk/raster/r.neighbors
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 10 11:39:32 PDT 2014
Author: glynn
Date: 2014-04-10 11:39:31 -0700 (Thu, 10 Apr 2014)
New Revision: 59677
Modified:
grass/trunk/raster/r.neighbors/main.c
Log:
Fix r59669; weights= implies non-integer result
Modified: grass/trunk/raster/r.neighbors/main.c
===================================================================
--- grass/trunk/raster/r.neighbors/main.c 2014-04-10 18:17:59 UTC (rev 59676)
+++ grass/trunk/raster/r.neighbors/main.c 2014-04-10 18:39:31 UTC (rev 59677)
@@ -323,8 +323,8 @@
: 0;
out->buf = Rast_allocate_d_buf();
out->fd = Rast_open_new(output_name,
- menu[method].is_int ? CELL_TYPE : DCELL_TYPE);
- /* TODO: method=mode should propagate its type */
+ (menu[method].is_int && !out->method_fn_w) ? CELL_TYPE : DCELL_TYPE);
+ /* TODO: method=mode should propagate its type */
/* get title, initialize the category and stat info */
if (parm.title->answer)
More information about the grass-commit
mailing list