[GRASS-dev] Re: [GRASS-SVN] r49205 - in grass/trunk: lib/python raster/r.info

Sören Gebbert soerengebbert at googlemail.com
Wed Nov 16 14:10:47 EST 2011


2011/11/14 Glynn Clements <glynn at gclements.plus.com>:
> Martin Landa wrote:
>> I highly *disagree* with this revert! Merging very specific options
>> which just prints one information to generic `-g` is a good idea (from
>> my POV). Please don't revert the commits which are just against your
>> *personal* taste! What's the opinion of other developers?
> Having "-g" for "dump everything, key=value format" is a good idea.
> Having additional options to dump specific pieces of information may
> be worthwhile, particularly if some items require non-trivial effort
> to retrieve. Even if it doesn't seem particularly useful, it is at
> least harmless.

Thats indeed the best solution. Lets use this idea as design decision.

I think r.univar is a good example. Extended stats are computed only
when specified, because of its additional computation effort and
memory usage. The output is added automatically to shell style output
in case "-g" is specified.

* g.region is ok
* r.info, v..info and r3.info can be reduced to use only the "-g" flag
to print all info in shell style
* ... ?

Best regards

> --
> Glynn Clements <glynn at gclements.plus.com>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev

More information about the grass-dev mailing list