#3335: v.to.rast with label_column set results in raster with part of raster cells
without label
-------------------------+-------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.1
Component: Default | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
Converting a vector to raster does in some specific cases yields yields
issues with the labeling. E.g., the following (using the NC dataset)
results in a layer with each raster cells assigned a category label (the
name of the municipality):
#3335: v.to.rast with label_column set results in raster with part of raster cells
without label
--------------------------+-------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.1
Component: Default | Version: unspecified
Resolution: | Keywords:
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Comment (by mmetz):
Replying to [ticket:3335 pvanbosgeo]:
The problem appears when a label is assigned to a range of values, e.g.
{{{
992:996:Morrisville
}}}
this means that all raster values from 992 to 996 should get the same
label "Morrisville". The raster library supports writing such a range of
values for all map types with Rast_set_cat(), but reading such a range of
values is supported only for fp maps (FCELL, DCELL).
#3335: v.to.rast with label_column set results in raster with part of raster cells
without label
--------------------------+-------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.1
Component: Default | Version: unspecified
Resolution: | Keywords:
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Comment (by pvanbosgeo):
Replying to [comment:1 mmetz]:
> Replying to [ticket:3335 pvanbosgeo]:
>
> The problem appears when a label is assigned to a range of values, e.g.
> {{{
> 992:996:Morrisville
> }}}
>
> this means that all raster values from 992 to 996 should get the same
label "Morrisville". The raster library supports writing such a range of
values for all map types with Rast_set_cat(), but reading such a range of
values is supported only for fp maps (FCELL, DCELL).
>
> Please try trunk r70900.
Quick try, seems to work now, thanks. So this means it now works for
integer maps as well?
#3335: v.to.rast with label_column set results in raster with part of raster cells
without label
--------------------------+-------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.1
Component: Default | Version: unspecified
Resolution: | Keywords:
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Comment (by mmetz):
Replying to [comment:2 pvanbosgeo]:
> Replying to [comment:1 mmetz]:
> > Replying to [ticket:3335 pvanbosgeo]:
> >
> > The problem appears when a label is assigned to a range of values,
e.g.
> > {{{
> > 992:996:Morrisville
> > }}}
> >
> > this means that all raster values from 992 to 996 should get the same
label "Morrisville". The raster library supports writing such a range of
values for all map types with Rast_set_cat(), but reading such a range of
values is supported only for fp maps (FCELL, DCELL).
> >
> > Please try trunk r70900.
>
> Quick try, seems to work now, thanks. So this means it now works for
integer maps as well?
Yes, getting a label for a range of values now works for CELL maps as well
(setting a label for a range of values was already possible).