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

Martin Landa landa.martin at gmail.com
Fri Aug 8 13:58:20 EDT 2008


Hi,

2008/8/8 Moritz Lennert <mlennert at club.worldonline.be>:
> 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.

I would hesitate to add GV_CENTROID automatically when displaying
labels. Attributes are connected to the primitives like points,
centroids, lines or boundaries, not areas! In d.vect when you ask to
display 'area', you ask for filling areas, nothing else. Labels are
not connected to areas but to the centroids. So you basically cannot
ask to display area labels. This should be explained in d.vect manual
rather then changing the code. Just my opinion.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-user mailing list