[GRASS-dev] r.resamp.stats bus error
Markus Neteler
neteler at osgeo.org
Tue Oct 21 14:34:05 EDT 2008
On Tue, Oct 21, 2008 at 1:19 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> the following change should fix it:
>
> --- raster/r.resamp.stats/main.c (revision 33947)
> +++ raster/r.resamp.stats/main.c (working copy)
> @@ -315,8 +315,8 @@
>
> G_set_window(&src_w);
>
> - row_scale = 1 + ceil(dst_w.ns_res / src_w.ns_res);
> - col_scale = 1 + ceil(dst_w.ew_res / src_w.ew_res);
> + row_scale = 2 + ceil(dst_w.ns_res / src_w.ns_res);
> + col_scale = 2 + ceil(dst_w.ew_res / src_w.ew_res);
>
> /* allocate buffers for input rows */
> bufs = G_malloc(row_scale * sizeof(DCELL *));
Backported to 6.4.svn.
Markus
More information about the grass-dev
mailing list