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

Moritz Lennert mlennert at club.worldonline.be
Fri Aug 8 11:46:04 EDT 2008


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







More information about the grass-user mailing list