#1124: v.to.rast inconsistency in importing label
----------------------+-----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Keywords: | Platform: All
Cpu: All |
----------------------+-----------------------------------------------------
We just ran into a strange inconsistency in the behavior of v.to.rast.
This happens if you are trying to use vector attributes to populate the
cat and label fields of a new raster.
If you have a float (double precision) attribute to use for the raster cat
and string attribute to use for the raster label, the float is imported
into the raster cat fine. But the string is imported from the vector
attribute to the raster label ONLY if the value in the corresponding
attribute to use for the cat has no decimals. For example:
here is a vector attribute table with 2 attributes and 4 records: