Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1
Could you check if the issue in 6.4 is related to the RESOLUTION parameter in your mapfile (i.e. remove it and re-run)? Mapserver 7.0 should be production ready unless you're using its remaining blocking issue (TIME filters with MSSQL backends). -- thomas On 29 April 2015 at 22:34, mapserver mapser...@markus-spring.de wrote: Am 28.04.2015 um 08:11 schrieb thomas bonfort: Are you using the GD or AGG renderer? Do all truetype fonts exhibit this behavior? Can you test the 7.0 beta on this? Can you provide a self contained test-case to reproduce this? Lots of questions :) OK, to compare 5.6.7, 6.4.1 and 7.0.0beta, I compiled all three versions under centos 6.5 and created a simple mapfile: http://s.markus-spring.info/legend-agg.map Using the AGG renderer only because of its much better rendering, and got these results through the legend command: mapserver 5.6.7 (http://s.markus-spring.info/legend-agg-5.6.7.png) [image: legend-agg-5.6.7.png] mapserver 6.4.1 (http://s.markus-spring.info/legend-agg-6.4.1.png) [image: legend-agg-6.4.1.png] mapserver 7.0.0beta (http://s.markus-spring.info/legend-agg-7.0.0beta1.png ) [image: legend-agg-7.0.0beta1.png] There are clear differences in the rendered font sizes, but 5.6.7 and 7.0.0beta1 do not truncate the text, only 6.4.1 does. For me the question is if (or when) 7.0.0 is production quality already, and not only the mapserver itself but also mapcache, as the internet map services of the City of Munich are going to use that for the background maps. Best regards Markus ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1
Am 28.04.2015 um 08:11 schrieb thomas bonfort: Are you using the GD or AGG renderer? Do all truetype fonts exhibit this behavior? Can you test the 7.0 beta on this? Can you provide a self contained test-case to reproduce this? Lots of questions :) OK, to compare 5.6.7, 6.4.1 and 7.0.0beta, I compiled all three versions under centos 6.5 and created a simple mapfile: http://s.markus-spring.info/legend-agg.map Using the AGG renderer only because of its much better rendering, and got these results through the legend command: mapserver 5.6.7 (http://s.markus-spring.info/legend-agg-5.6.7.png) legend-agg-5.6.7.png mapserver 6.4.1 (http://s.markus-spring.info/legend-agg-6.4.1.png) legend-agg-6.4.1.png mapserver 7.0.0beta (http://s.markus-spring.info/legend-agg-7.0.0beta1.png) legend-agg-7.0.0beta1.png There are clear differences in the rendered font sizes, but 5.6.7 and 7.0.0beta1 do not truncate the text, only 6.4.1 does. For me the question is if (or when) 7.0.0 is production quality already, and not only the mapserver itself but also mapcache, as the internet map services of the City of Munich are going to use that for the background maps. Best regards Markus ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1
Are you using the GD or AGG renderer? Do all truetype fonts exhibit this behavior? Can you test the 7.0 beta on this? Can you provide a self contained test-case to reproduce this? Lots of questions :) -- thomas On 28 April 2015 at 06:19, mapserver mapser...@markus-spring.de wrote: Steve et. al., this legend issue is a major showstopper and makes GetLegendGraphic quite useless if you need utf-8 characters with truetype. Is there any solution for this? Best regards - Markus 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 Ouml;ffentlicher Trauml;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.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default and mapserver 6.4.1 gives this one: http://kronos.muenchen.de/wms/rgu/behindertenheime?version=1.1.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1
Steve et. al., this legend issue is a major showstopper and makes GetLegendGraphic quite useless if you need utf-8 characters with truetype. Is there any solution for this? Best regards - Markus 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 Ouml;ffentlicher Trauml;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.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default and mapserver 6.4.1 gives this one: http://kronos.muenchen.de/wms/rgu/behindertenheime?version=1.1.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1
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 nbsp; 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 Ouml;ffentlicher Trauml;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.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default and mapserver 6.4.1 gives this one: http://kronos.muenchen.de/wms/rgu/behindertenheime?version=1.1.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1 (mapserver)
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-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of mapserver-users-requ...@lists.osgeo.org Sent: 2015, April, 23 1:00 PM To: mapserver-users@lists.osgeo.org Subject: mapserver-users Digest, Vol 87, Issue 28 Send mapserver-users mailing list submissions to mapserver-users@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-requ...@lists.osgeo.org You can reach the person managing the list at mapserver-users-ow...@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 mapser...@markus-spring.de To: j...@mapmedia.de, mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1 Message-ID: 55391769.4070...@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 nbsp; 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 Ouml;ffentlicher Trauml;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.1serv ice=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=defa ult and mapserver 6.4.1 gives this one: http://kronos.muenchen.de/wms/rgu/behindertenheime?version=1.1.1serv ice=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 87, Issue 28 *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Legend difference in 5.6.1 and 6.4.1
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 Ouml;ffentlicher Trauml;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.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default and mapserver 6.4.1 gives this one: http://kronos.muenchen.de/wms/rgu/behindertenheime?version=1.1.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1
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 nbsp; 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 Ouml;ffentlicher Trauml;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.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default and mapserver 6.4.1 gives this one: http://kronos.muenchen.de/wms/rgu/behindertenheime?version=1.1.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users