r.support [was: Re: [GRASS-dev] Re: 7.x Status Update (Glynn Clements)]

Glynn Clements glynn at gclements.plus.com
Thu Aug 7 17:33:05 EDT 2008


Markus Neteler wrote:

> >>> **r.support - Need some way to access raster metadata.
> >>
> >> Of the four sub-modules:
> >>
> >>        modhead -> r.region
> >>        modcats -> r.category
> >>        modcolr -> r.colors
> >>        modhist -> ???
> >>
> >> The functionality built into the front-end module is mostly
> >> non-interactive, and can be cannibalised.
> >>
> >> So that just leaves editing the history. The obvious non-interactive
> >> solution is a module (or two) which allows the history to be read from
> >> or written to a text file.
> >>
> >
> > r.support already allows non-interactive editing of most of the meta-data,
> > including history (r.support map history="xyz"), so wouldn't it be enought
> > to "just" disable the interactive functionality ?
> 
> modhist -> metadata
> 
> It's fundamental to maintain at a minimal level (this needs to be improved)
> metadata of maps. Don't remove, please (the cmd line version).

I have salvaged the non-interactive portions of r.support.

It has three new flags to replace certain interactive yes/no prompts:

  -s   Update statistics (histogram, range)
  -n   Create/reset the null file
  -d   Delete the null file

I'll look into importing/exporting the history next.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list