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

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

Please try r56185

2013/5/9 Markus Neteler <neteler@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev