[GRASS5] howto: direct access to raster cells - skeletons in
cvs?
Hamish
hamish_nospam at yahoo.com
Wed Sep 29 20:29:47 EDT 2004
> I want to perform the following task:
> 1) read a single cell in a raster map
> 2) modify its value
> 3) write it back and display the map
Have a look at the C code for r.univar.
I don't guarantee it is "correct" enough to be put forward as an
official example, but it does work and is not that complicated.
http://freegis.org/cgi-bin/viewcvs.cgi/grass/src/raster/r.univar2/main.c?rev=1.7&content-type=text/vnd.viewcvs-markup
Hamish
More information about the grass-dev
mailing list