[GRASSLIST:1547] Re: (no subject)
Glynn Clements
glynn.clements at virgin.net
Thu Oct 23 06:39:34 EDT 2003
leo.lami at katamail.com wrote:
> I am tryng to set an attribute value of a raster
> with floating point values.
> I reclass the raster from a Postgres dataset
> whit the "d.rast.pg" command but GRASS breaks
> (not rounding it) the value at the integer
> value.
> How can I have the correct value, with the
> precision required?
Reclass maps can only have integer values.
One solution would be to generate a labels file from the SQL table
(there isn't a tool to do this, but it wouldn't be hard to do
manually), then use r.mapcalc to generate a new map which uses the
label in place of the category.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user
mailing list