[GRASS-dev] GRASS 7: r.drain - MAX_POINTS limitation of 1024

Sören Gebbert soerengebbert at googlemail.com
Fri May 10 04:23:55 PDT 2013


Please try r56185

2013/5/9 Markus Neteler <neteler at osgeo.org>:
> Hi,
>
> we would need to put more that 1024 starting points into r.drain, but
> stumble over:
>
> main.c
> 52      /* should probably be updated to a pointer array & malloc/realloc
> as needed */
> 53      #define MAX_POINTS 1024
>
> http://trac.osgeo.org/grass/browser/grass/trunk/raster/r.drain/main.c#L51
>
> Is it "dangerous" to significantly increase this number? Naturally dynamic
> allocation would be nice here...
> ?
>
> Markus
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list