[GRASS-dev] [GRASS GIS] #1767: v.univar: add sum

#1767: v.univar: add sum
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Vector | Version: unspecified
Keywords: v.univar | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
I was surprised to discover that v.univar does not print out the sum of
the variable asked for. The attached very simple patch (against
64_release) does that. Was there any reason I should know about why the
sum was not included ?

And: is it acceptable to add the sum to grass6, or is this an unacceptable
change in behaviour of a module and should only be added to grass7 ?

Moritz

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

#1767: v.univar: add sum
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 6.4.3
Component: Vector | Version: unspecified
Resolution: fixed | Keywords: v.univar
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by neteler):

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

Comment:

Since it is an "easy" patch, added to G6.4-G7 in r53533, r53534, 53535.

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

#1767: v.univar: add sum
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 6.4.3
Component: Vector | Version: unspecified
Resolution: fixed | Keywords: v.univar
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by mlennert):

Replying to [comment:1 neteler]:
> Since it is an "easy" patch, added to G6.4-G7 in r53533, r53534, 53535.

Thanks. I just hope that this will not perturb any scripts that depend on
v.univar output being in a specific order...

Moritz

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

#1767: v.univar: add sum
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 6.4.3
Component: Vector | Version: unspecified
Resolution: fixed | Keywords: v.univar
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by neteler):

In the first place eval and -g flag should be used.
Then I don't see any v.univar usage the official scripts
not in the C code. Should be fine.

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