#3643 closed enhancement (fixed)
Count report output of v.category
Reported by: | jradinger | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Default | Version: | svn-releasebranch74 |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | All |
Description
The count column of the output of v.category option=report
refers to the number of vector objects (i.e. feature count) rather than to the number of unique categories (i.e. category count). The latter, however might be erroneously assumed because of the modules' name (i.e. that it reports category related information). Anyway, I think that both information is valuable to a user. However, what is actually provided by the count column, i.e. that it is a feature count is not explicitly clear from the manual page and should be improved. Maybe also an option to obtain the number of unique categories might be interesting for many users. (Based on an GRASS list email conversatoin with M. Lennert, this can be done with something like v.category YourMap op=print | sort -n | uniq | wc -l
)
As M Metz found out (stated here: https://lists.osgeo.org/pipermail/grass-user/2018-September/079124.html): The output of the count column of v.category option=report is the total number of categories per type and layer. If you have e.g. two lines with categories
line1: 1
line2: 1,2
there are two lines and three categories. This needs to be explained in the manual.