Opened 14 months ago

Closed 13 months ago

Last modified 13 months 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

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)

Change History (4)

comment:1 Changed 13 months ago by jradinger

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.

comment:2 Changed 13 months ago by mmetz

Resolution: fixed
Status: newclosed

In 73331:

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

comment:3 Changed 13 months ago by mmetz

In 73332:

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

comment:4 Changed 13 months ago by mmetz

In 73333:

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

Note: See TracTickets for help on using tickets.