[GRASS5] Strange r.mapcalc behaviour - bug?

Glynn Clements glynn.clements at virgin.net
Tue Mar 23 16:14:52 EST 2004


Markus Neteler wrote:

> > I'm not sure what purpose "r.support -r" serves. The core libgis
> > functions automatically update the range; AFAICT, the only reasons
> > that the range/fp_range files may not accurately reflect the range of
> > the data are:
> > 
> > 1. The actual cell/fcell data files have been modified other than
> > via the standard functions (open_cell/put_row/close_cell).
> > 
> > 2. The range has been explicitly modified via e.g. G_update_range()
> > (which is what "r.support -r" does).
> 
> So maybe we remove it?
> 
> Maybe it was introduced once in the inter version to overcome above
> mentioned problems, then introduced into cmd to have it available on
> command line.
> 
> In case of removal it should be removed from both cmd and inter.

I suspect that r.support has its place, but for consistency with the
way in which the range is normally calculated, the calculation should
iterate over the cell values, not the category list (for both integer
and FP).

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list