[GRASS-dev] r.resamp.stats bus error

Jamie Adams jaadfoo at gmail.com
Tue Oct 21 14:50:55 EDT 2008


Great.  The command is proceeding normally now.

Thanks!

On Tue, Oct 21, 2008 at 11:34 AM, Markus Neteler <neteler at osgeo.org> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20081021/d86ee306/attachment.html


More information about the grass-dev mailing list