[GRASS-dev] [Re: [GRASS-user] vector layer labelling doesn't work....]

Forwarding to dev-list in case someone wants to react. Summary: in vector area maps, labels are only displayed when centroids are also displayed.

Proposal: automatically display centroids, when attribute label option is activated.

Moritz

-------- Original Message --------
Subject: Re: [GRASS-user] vector layer labelling doesn't work....
Date: Fri, 08 Aug 2008 17:46:04 +0200
From: Moritz Lennert <mlennert@club.worldonline.be>
To: G. Allegri <giohappy@gmail.com>
CC: grassuser <grass-user@lists.osgeo.org>

On 08/08/08 17:34, G. Allegri wrote:

If I'm not wrong centroids were set on by default. I didn't make this
"mistake" before, but I've used labeling lot of times.

I mean, in some previous versions...

see http://lists.osgeo.org/pipermail/grass-dev/2007-February/028873.html
and following, notably
http://lists.osgeo.org/pipermail/grass-dev/2007-February/028908.html

So, it's been off since 1 1/2 year, at least in trunk...

But, to come back to the labelling issues, AFAICT, all it would take is
this:

Index: display/d.vect/main.c

--- display/d.vect/main.c (révision 32646)
+++ display/d.vect/main.c (copie de travail)
@@ -565,6 +565,7 @@
             break;
         case 'a':
             display |= DISP_ATTR;
+ type |= GV_CENTROID;
             break;
         case 'z':
             display |= DISP_ZCOOR;

Martin, are you really against this ? Anyone else ? Otherwise, I would
commit.

Moritz

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