Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3643 closed enhancement (fixed)

Count report output of v.category

Reported by: jradinger Owned by: grass-dev@…
Priority: normal Milestone:
Component: Default Version: svn-releasebranch74
Keywords: Cc:
CPU: Unspecified Platform: All


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)

Change History (4)

comment:1 by jradinger, 6 years ago

As M Metz found out (stated here: 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.

comment:2 by mmetz, 6 years ago

Resolution: fixed
Status: newclosed

In 73331:

v.category: explain option=report (fixes #3643)

comment:3 by mmetz, 6 years ago

In 73332:

v.category: explain option=report (fixes #3643, backport trunk r73331)

comment:4 by mmetz, 6 years ago

In 73333:

v.category: explain option=report (fixes #3643, backport trunk r73331)

Note: See TracTickets for help on using tickets.