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

Moritz Lennert mlennert at club.worldonline.be
Fri Aug 8 13:24:53 EDT 2008


On 08/08/08 19:01, Moritz Lennert wrote:
> On 08/08/08 18:12, Michael Barton wrote:
>>
>>
>> On Aug 8, 2008, at 9:00 AM, <grass-dev-request at lists.osgeo.org> wrote:
>>
>>> Date: Fri, 08 Aug 2008 17:53:48 +0200
>>> From: Moritz Lennert <mlennert at club.worldonline.be>
>>> Subject: [GRASS-dev] [Fwd: Re: [GRASS-user] vector layer labelling
>>>     doesn't    work....]
>>> To: grass-dev <grass-dev at lists.osgeo.org>
>>> Message-ID: <489C6C0C.7070302 at club.worldonline.be>
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>
>>> 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.
>>
>> This is ugly for areas. 
> 
> Well, currently, if you want to display labels, you have to display the 
> centroids, but you can make them points with size 1, so hardly visible...
> 
>> It would be much better to allow labels to be displayed without 
>> centroids being displayed.
> 
> Then you would need a new ltype parameter to determine for which types 
> of features you would like to see labels. Otherwise, in a layer (using 
> new proposed terminology) mixing different types of features, GRASS 
> wouldn't know for which type you want labels, since you did not need to 
> activate them with the type parameter...
> 

Nope, I was wrong, it actually seems possible (and easier than I 
thought). Try the attached patch which should allow displaying area 
labels without centroids.

Moritz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d.vect.diff
Type: text/x-patch
Size: 1843 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20080808/017170fa/d.vect.bin


More information about the grass-dev mailing list