[GRASS-user] v.label.sa not working with areas?
Moritz Lennert
mlennert at club.worldonline.be
Mon Apr 22 03:31:18 PDT 2013
On 21/04/13 10:01, RichardC wrote:
> Hi,
>
> I'm using GRASS 6.4.3 and cannot get v.label.sa to work with areas. On
> running the following I get an empty labels file.
>
> v.label.sa --verbose map=hydrobasins_africa at hydrolayers type=area
> column=MAJ_NAME labels=africa_basins_sa font=Trebuchet_MS size=0.5 color=red
>
> However, it works with lines - I can output a labels file if the layer
> comprises line features.
>
> Has anyone got this working with areas?
I just tested with census_wake2000 from the NC demo dataset and can
confirm the issue.
The problem seems to be with the type 'area' which is not recognised
somewhere along the process. Adding the option 'centroid' to the 'type'
parameter and using that option makes it create the expected labels.
Could you file a bug about this ?
I'm not sure which would be the better solution:
- Leave the options as is and change the code so that 'area' is remapped
to 'centroid'
- Change the options from area to centroid.
Moritz
More information about the grass-user
mailing list