[GRASS-dev] [GRASS GIS] #3643: Count report output of v.category

#3643: Count report output of v.category
-------------------------+---------------------------------
Reporter: jradinger | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Default | Version: svn-releasebranch74
Keywords: | 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`)

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3643&gt;
GRASS GIS <https://grass.osgeo.org>

#3643: Count report output of v.category
--------------------------+---------------------------------
  Reporter: jradinger | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: normal | Milestone:
Component: Default | Version: svn-releasebranch74
Resolution: | Keywords:
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------

Comment (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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3643#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3643: Count report output of v.category
--------------------------+---------------------------------
  Reporter: jradinger | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone:
Component: Default | Version: svn-releasebranch74
Resolution: fixed | Keywords:
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------
Changes (by mmetz):

* status: new => closed
* resolution: => fixed

Comment:

In [changeset:"73331" 73331]:
{{{
#!CommitTicketReference repository="" revision="73331"
v.category: explain option=report (fixes #3643)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3643#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3643: Count report output of v.category
--------------------------+---------------------------------
  Reporter: jradinger | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone:
Component: Default | Version: svn-releasebranch74
Resolution: fixed | Keywords:
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------

Comment (by mmetz):

In [changeset:"73332" 73332]:
{{{
#!CommitTicketReference repository="" revision="73332"
v.category: explain option=report (fixes #3643, backport trunk r73331)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3643#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#3643: Count report output of v.category
--------------------------+---------------------------------
  Reporter: jradinger | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone:
Component: Default | Version: svn-releasebranch74
Resolution: fixed | Keywords:
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------

Comment (by mmetz):

In [changeset:"73333" 73333]:
{{{
#!CommitTicketReference repository="" revision="73333"
v.category: explain option=report (fixes #3643, backport trunk r73331)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3643#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>