v.rast.stats: add support for -d flag (densified lines)
|Reported by:||veroandreo||Owned by:|
Currently, G7:v.rast.stats uses the default thin lines from G7:v.to.rast to get statistics from a vector of lines. This is however not always the best choice. In my case, for mice traplines, I need all the pixels overlapped by the line.
Given that v.to.rast has this nice -d flag for densified lines, would that be possible to also have that option in v.rast.stats since it internally calls v.to.rast to get raster statistics for lines or polygons? That would reduce the current workflow from:
v.to.rast -d ;
r.to vect type=area ;
v.rast.stats to only
v.rast.stats (with -d flag in case densified lines are preferred :)).