[GRASS-user] Updating Raster Categories without using r.support?

Glynn Clements glynn at gclements.plus.com
Tue Nov 18 13:00:40 EST 2008


brendon wolff-piggott wrote:

> I still haven't finally sorted out my Ubuntu install.  Will report on
> it when it comes right!
> 
> I am back on Windows, working via QGIS and the MSys Grass shell. I am
> trying to set categories for a raster map (imported from a Geotiff of
> a classified image).  I have copied it out of the Permanent mapset to
> be able to make edits, and used r.support:
> 
> "r.support inkomati_utm36wgs_upd
> Edit header for [inkomati_utm36wgs_upd]? (y/n) [n] n
> Update the statistics (histogram, range) for [inkomati_utm36wgs_upd]?
> (y/n) [n] n
> Edit the category file for [inkomati_utm36wgs_upd]? (y/n) [n] y
> 
> Redirection is not supported."
> 
> Is there a way to set the categories by editing a file directly?

You can use "r.category ... rules=..." to set category labels
non-interactively.

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


More information about the grass-user mailing list