Opened 7 years ago
Last modified 6 years ago
#3504 new enhancement
v.rast.stats: add "mode" and "diversity" to methods
Reported by: | veroandreo | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.2 |
Component: | Vector | Version: | svn-trunk |
Keywords: | v.rast.stats | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
Currently, if one needs to extract mode and diversity statistics from a Land Cover raster map for polygons in a vector map, polygons need to be converted to raster format, then use G7:r.statistics (which seems to be the only module providing mode) and then query r.statistics' output raster(s) with v.rast.stats again. If v.rast.stats would provide these basic info, the workflow would be very much simplified.
Would it be possible to add mode and diversity to the methods available in G7:v.rast.stats?
Change History (6)
follow-up: 2 comment:1 by , 7 years ago
comment:2 by , 7 years ago
Replying to annakrat:
Not that it would probably help here, but there is r.mode module.
Yes, you are right. But using r.mode for this case does not make any difference, it would be the same than using r.statistics. I need to query a LC map with a polygon vector map and get the mode and diversity in the attribute table of the vector map.
comment:3 by , 7 years ago
Milestone: | 7.4.1 → 7.4.2 |
---|
comment:4 by , 6 years ago
Milestone: | 7.4.2 → 7.6.0 |
---|
All enhancement tickets should be assigned to 7.6 milestone.
Not that it would probably help here, but there is r.mode module.