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

Markus Neteler neteler at osgeo.org
Thu May 9 09:31:29 PDT 2013


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


More information about the grass-dev mailing list