Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1767 closed enhancement (fixed)

v.univar: add sum

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 6.4.3
Component: Vector Version: unspecified
Keywords: v.univar Cc:
CPU: Unspecified Platform: Unspecified

Description

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

Attachments (1)

v.univar.sum.diff (812 bytes ) - added by mlennert 12 years ago.

Download all attachments as: .zip

Change History (4)

by mlennert, 12 years ago

Attachment: v.univar.sum.diff added

comment:1 by neteler, 12 years ago

Resolution: fixed
Status: newclosed

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

in reply to:  1 comment:2 by mlennert, 12 years ago

Replying to 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

comment:3 by neteler, 12 years ago

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.

Note: See TracTickets for help on using tickets.