[mapserver-users] Problem with "ANGLE FOLLOW"

Christy Nieman cnieman at dmsolutions.ca
Mon Dec 3 06:35:59 PST 2012


Hi,

ANGLE FOLLOW is subject to MAXOVERLAPANGLE (see 
http://mapserver.org/mapfile/label.html). If there is an angle between 
letters that is larger than 22.5 (if you don't have a manually-set 
value), then the label will not be drawn.

I wrote a blog post that may help you understand: 
http://research.dmsolutions.ca/2011/new-and-exciting-in-mapserver-6-0/

Christy

On 12/03/2012 09:07 AM, umn-ms at hydrotec.de wrote:
>> Try lowering the BUFFER number? ...
> Good idea. But even changing to "BUFFER 0" didn't change anything ...
>
> Problem is still there.
>
> Benedikt
>
>
>
>
> TC Haddad <tchaddad at gmail.com> schrieb am 03.12.2012 13:54:56:
>
>> TC Haddad <tchaddad at gmail.com>
>> 03.12.2012 13:55
>>
>> An
>>
>> "umn-ms at hydrotec.de" <umn-ms at hydrotec.de>
>>
>> Kopie
>>
>> Thema
>>
>> Re: [mapserver-users] Problem with "ANGLE FOLLOW"
>>
>>
>> Try lowering the BUFFER number? If each label has a big buffer, then
>> less labels can fit...
>>
>> Tanya
>>
>> On Dec 3, 2012, at 2:56 AM, umn-ms at hydrotec.de wrote:
>>
>>> Hi
>>>
>>> I'm using  ANGLE-FOLLOW in Mapserver 6.2 to label lines.
>>> Unfortunately only 5 of 12 features are labeld.
>>>
>>> I attach an example with data and mapfile. It can be used with
>>>     shp2img -m example.map -o out.png
>>> All features are drawn, but most of them are not labeld, although there
>>> should be enough space for all labels.
>>>
>>> (To activate this example, one has to add arialbd.ttf in the
>>> test-directory. I didn't attach this one, because of size-limits
>>> in this mailing-list...)
>>>
>>> Without "ANGLE FOLLOW" all labels are drawn.
>>>
>>> Benedikt
>>>
>>>
>>> #Layerdefinition:
>>>
>>> LAYER
>>>   NAME "Striche"
>>>   TYPE LINE
>>>   STATUS ON
>>>   DEBUG 5
>>>   TEMPLATE "dummy.html"
>>>   TOLERANCE 0
>>>   DATA "Striche"
>>>   LABELITEM "name"
>>>   CLASS
>>>       NAME "Hauptsammler"
>>>       LABEL
>>>         COLOR 0 0 0
>>>         OUTLINECOLOR 255 255 255
>>>         OUTLINEWIDTH 6
>>>         TYPE truetype
>>>         SIZE 5
>>>         MINDISTANCE 0
>>>         ANGLE FOLLOW
>>>         FORCE TRUE
>>>         FONT "arial-bold"
>>>         BUFFER 10
>>>       END
>>>       STYLE
>>>         OUTLINECOLOR 0 0 0
>>>         WIDTH 3
>>>         PATTERN 5 5 END
>>>         LINECAP BUTT
>>>       END
>>>   END
>>> END
>>> (See attached file: missinglabel.zip)
>>> <missinglabel.zip>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121203/d9ee7ff2/attachment.htm>


More information about the MapServer-users mailing list