[GRASS5] raster rendering bug

Hamish hamish_nospam at yahoo.com
Wed May 19 22:00:33 EDT 2004


Hi folks,

I seem to remember seeing this sometime in the past, just ran across it
again today.

I have a raster created with 5.7's 'v.to.rast use=val val=123.4'. When
viewed with d.rast in 5.3 or 5.7 and zooming in, it displays incorrectly
(white band) on raster rows containing all the same value.

(r.colors col=rules < 0% red ; 100% red)

d.what.rast gives the correct answer both in & out of the band.


running [in 5.3 now]:
 (test1 is the bad version [DCELL])

r.mapcalc test2="float(test1)"

this makes a new FCELL raster which displays properly.
 converting this back to DCELL with double() produces a good raster.


but if I run:
r.mapcalc test3=test1

I get a new DCELL raster which still has the problem.


Is v.to.rast writing bad files? is the error limited to the display?



Hamish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rast_err.png
Type: image/png
Size: 19492 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20040520/6c397025/rast_err.png


More information about the grass-dev mailing list