[mapserver-users] Legend difference in 5.6.1 and 6.4.1 (mapserver)

Weisbender, Eric Weisbend at WAPA.GOV
Thu Apr 23 13:51:43 PDT 2015


Hello List,

With my legend font I am having the exact same problem on the exact same version of MapServer.  In the mean time I have reverted back to BITMAP font but would like to continue using TRUETYPE.  I have also tried multiple variation of Legend definition and am currently copying my old .ttf files from our previous server.  Any insight to this issue is greatly appreciated.

Thanks,

Eric Weisbender


-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org
Sent: 2015, April, 23 1:00 PM
To: mapserver-users at lists.osgeo.org
Subject: mapserver-users Digest, Vol 87, Issue 28

Send mapserver-users mailing list submissions to
	mapserver-users at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
	mapserver-users-request at lists.osgeo.org

You can reach the person managing the list at
	mapserver-users-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. Re: Legend difference in 5.6.1 and 6.4.1 (mapserver)


----------------------------------------------------------------------

Message: 1
Date: Thu, 23 Apr 2015 18:01:45 +0200
From: mapserver <mapserver at markus-spring.de>
To: jt at mapmedia.de, mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1
Message-ID: <55391769.4070005 at markus-spring.de>
Content-Type: text/plain; charset=windows-1252; format=flowed

J?rg,

looks like this is a minefield :(

Strange enough, using bitmap fonts the class names don't get truncated, but then I don't have the beloved German umlauts. This sure enough looks like a miscalculation of the space the average letter of a proportional font needs and so the space allocated for the class name is too small.

Don't know why it worked in 5.6.1 but broke in the transition to 6.4.1

---Markus

Am 23.04.2015 um 11:28 schrieb J?rg Thomsen:
> Hallo Markus,
>
> I remember this thread:
> http://mapserver-users.umn.narkive.com/sUT3WyaT/wrong-different-legend
> -generation
> but I don't know the ending...
>
> In your legend definition you are using wrap, as I remember you have 
> to use html '<br />' for legends (in the class name). Additionally you 
> should use an offset to shift the text upward.
>
> In one of my projects I had to use up to three lines for the 
> description in the legend and I added dummy classes with white symbols 
> an   as name between each real class to have enough space for my text.
>
> perhaps this works for you too.
>
> J?rg
>
> Am 23.04.2015 um 09:45 schrieb mapserver:
>> I am migrating my mapserver application from 5.6.1 to 6.4.1 and have 
>> observed a difference in the created legend images, i.e. truncating 
>> of class names - which makes the legend image unusable in the end
>>
>> The legend definition on both platforms is as such:
>>
>> LEGEND
>>    KEYSIZE 22 12
>>    LABEL
>>      TYPE TRUETYPE
>>      FONT arial
>>      SIZE 8
>>      COLOR 0 0 0
>>      WRAP "@"
>>    END
>>    STATUS ON
>> END # legend
>>
>> Mapfile: Umlauts in html-encoding like
>>   CLASS NAME "Öffentlicher Träger"
>>
>> I have to use a truetype font, otherwise I can't render the German umlauts.
>>
>> mapserver 5.6.1 gives this result:
>>
>> http://maps.muenchen.de/wms-2/rgu/behindertenheime?version=1.1.1&serv
>> ice=WMS&request=GetLegendGraphic&layer=l0&format=image/png&STYLE=defa
>> ult
>>
>>
>> and mapserver 6.4.1 gives this one:
>>
>> http://kronos.muenchen.de/wms/rgu/behindertenheime?version=1.1.1&serv
>> ice=WMS&request=GetLegendGraphic&layer=l0&format=image/png&STYLE=defa
>> ult
>>
>>
>> Have I missed something in the migration guide? Or are there 
>> parameter available to increase the legend size?
>>
>> Best regards - Markus
>> _______________________________________________
>> 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
>


------------------------------

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

End of mapserver-users Digest, Vol 87, Issue 28
***********************************************


More information about the mapserver-users mailing list