[GRASS-user] v.label.sa not working with areas?

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@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?

Cheers,
Richard

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/v-label-sa-not-working-with-areas-tp5048543.html
Sent from the Grass - Users mailing list archive at Nabble.com.

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@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

Filed bug report at http://trac.osgeo.org/grass/ticket/1942
<http://trac.osgeo.org/grass/ticket/1942&gt;

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/v-label-sa-not-working-with-areas-tp5048543p5048778.html
Sent from the Grass - Users mailing list archive at Nabble.com.

I’m picking this bug up. I’ll continue working on this missing feature. I never got around to implementing it, but now that I see people are using and wanting this feature I’m more than happy to actually work on it!

···

On Mon, Apr 22, 2013 at 3:12 PM, RichardC <richtcooper@hotmail.com> wrote:

Filed bug report at http://trac.osgeo.org/grass/ticket/1942
<http://trac.osgeo.org/grass/ticket/1942>


View this message in context: http://osgeo-org.1560.x6.nabble.com/v-label-sa-not-working-with-areas-tp5048543p5048778.html

Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user