[GRASSLIST:1543] (no subject)

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?
    
Thanks
    
Leonardo Lami

leo.lami@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@virgin.net>