<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Nachricht</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY><!-- Converted from text/plain format -->
<P><FONT face=Arial size=2>Hi Michael,<BR><BR>seems to be quite difficult
;-) </FONT></P>
<P><FONT size=2><FONT face=Arial>I have recognized that the attribute MIMETYPE
has also an influence.</FONT> </FONT><BR><BR><FONT size=2>
OUTPUTFORMAT<BR> #MIMETYPE
"image/png"<BR> NAME 'AGGA'<BR>
DRIVER AGG/PNG<BR> EXTENSION
PNG<BR> IMAGEMODE RGB #RGBA<BR>
TRANSPARENT ON<BR> END</FONT></P>
<DIV><FONT size=2><FONT face=Arial color=#0000ff>delivers a correct
legend-picture, but the map looks very poor:</FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial color=#0000ff>legend is <IMG
src="cid:989360907@04032009-3721"></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial color=#0000ff></FONT></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial color=#0000ff>map is very poor <IMG
src="cid:989360907@04032009-3728"></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial color=#0000ff></FONT></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial color=#0000ff></FONT></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial color=#0000ff>Changing to
</FONT></FONT></DIV>
<DIV><FONT size=2> OUTPUTFORMAT<BR> #MIMETYPE
"image/png"<BR> NAME 'AGGA'<BR>
DRIVER AGG/PNG<BR> EXTENSION
PNG<BR> IMAGEMODE RGB #RGBA<BR>
TRANSPARENT ON<BR> END</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial color=#0000ff>or </FONT></DIV>
<P> OUTPUTFORMAT<BR> #MIMETYPE
"image/png"<BR> NAME 'AGG'<BR>
DRIVER AGG/PNG<BR> EXTENSION
PNG<BR> IMAGEMODE RGB #RGBA<BR>
TRANSPARENT ON<BR> END</P>
<P><FONT face=Arial color=#0000ff>delivers exact the same results.</FONT></P>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff>I only get 24bit png witch using MIMETYP
"image/png". so</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff>
OUTPUTFORMAT<BR> MIMETYPE
"image/png"<BR> NAME 'AGG'<BR>
DRIVER AGG/PNG<BR> EXTENSION
PNG<BR> IMAGEMODE RGB<BR>
TRANSPARENT OFF<BR> END</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff>delivers:</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff>legend in tmp-directory and pdf-print is
<IMG src="cid:989360907@04032009-372F"></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff>maps is <IMG
src="cid:989360907@04032009-373D"></FONT></DIV>
<P><FONT face=Arial color=#0000ff>But the legend delivered by request with
firefox is <IMG src="cid:989360907@04032009-3744"></FONT><BR><BR></P>
<DIV><FONT face=Arial color=#0000ff>A workaround could be:</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff>Using a seperate mapservice generating the
legend graphic. Because the legend should also have ""round edges" there must be
a "keyimage" definition in the mapfile. </FONT></DIV>
<DIV><FONT face=Arial color=#0000ff>But maintaining this workaround is a lot of
work. Mapserver is now able to procue the legends as they should be.
</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff>But mapbender is not printing them as they
should be.</FONT></DIV>
<P><FONT face=Arial color=#0000ff>regards</FONT></P>
<P><FONT face=Arial color=#0000ff>Herbert</FONT></P>
<P><BR><BR>>-----Ursprüngliche Nachricht-----<BR>>Von:
mapbender_users-bounces@lists.osgeo.org<BR>>[<A
href="mailto:mapbender_users-bounces@lists.osgeo.org">mailto:mapbender_users-bounces@lists.osgeo.org</A>]
Im Auftrag<BR>>von Michael Schulz<BR>>Gesendet: Dienstag, 3. März 2009
14:05<BR>>An: Mapbender User List<BR>>Betreff: Re: [Mapbender-users] MB
2.5: Problems with legends<BR>>in pdf-print using mapserver's
agg<BR>><BR>><BR>>Hi Herbert,<BR>><BR>>I am somewhat at the end
of my latin ;-)<BR>><BR>>class_SaveLegend should create a white background
rectangle in each<BR>>created legend image. If I remember correctly your
using the RGBA mode<BR>>in your outputformat. Could you try with only RGB?
Maybe the pdf class<BR>>image functions cannot handle alpha channel
transparency.<BR>><BR>>Cheers, Michael<BR>><BR>><BR>>2009/3/3
Schönhammer, Herbert <Schoenhammer.Herbert@regensburg.de>:<BR>>> Hi
Michael,<BR>>><BR>>> (sorry today and tomorrow I have a lot of dates
:-(, so i'm<BR>>late to answer ! )<BR>>><BR>>> following your
hints, I'm observing following:<BR>>><BR>>> 1) I'm using again:
image/png as wms setting<BR>>> 2) $unlink=false: The png -file of the
legend-picture is a<BR>>24 bit picture with the wrong (=black)
background-color<BR>>> 3) Looking at apache-log
mapbender's<BR>>getlegendgraphic-request uses "image/png"<BR>>> 4)
Taking the request from apache-log and sending this<BR>>request to mapserver:
the picture comes with transparent<BR>>background (like it should be) as a 24
bit png !<BR>>><BR>>> => The request from mapbender to mapserver
has a correct 24<BR>>bit png as result<BR>>> => The temporary file
in the tmp- directory is also a 24bit<BR>>png, but with wrong background
color<BR>>> => This wrong (black) png is inc´luded into the generated
pdf !<BR>>><BR>>><BR>>> P.S: I'm not able to give you access
to the services. From<BR>>Internet they will be rechable next weak
!<BR>>><BR>>> regards<BR>>>
Herbert<BR>>><BR>>><BR>>><BR>>><BR>>><BR>>><BR>>><BR>>>>-----Ursprüngliche
Nachricht-----<BR>>>>Von:
mapbender_users-bounces@lists.osgeo.org<BR>>>>[<A
href="mailto:mapbender_users-bounces@lists.osgeo.org">mailto:mapbender_users-bounces@lists.osgeo.org</A>]
Im Auftrag<BR>>>>von Michael Schulz<BR>>>>Gesendet: Montag, 2.
März 2009 17:57<BR>>>>An: Mapbender User List<BR>>>>Betreff:
Re: [Mapbender-users] MB 2.5: Problems with legends<BR>>>>in pdf-print
using mapserver's
agg<BR>>>><BR>>>><BR>>>>Hi,<BR>>>><BR>>>>the
problem with 24bit rendering is, that mapserver publishes that
as<BR>>>>"image/png;mode=24bit" in the wms getcapabilities if you don't
define<BR>>>>a special outputformat. So, when you have set image/png
as<BR>>>>image-format in mapbender and you get a 24bit png back
everything is<BR>>>>perfect.<BR>>>><BR>>>>Have you
tried setting $unlink=false in printPDF.conf and<BR>>then
examine<BR>>>>the temporary images while generating the pdf output? I
am not sure,<BR>>>>if this has impact on the legend images, but it
could be worth a try.<BR>>>><BR>>>>Cheers,
Michael<BR>>>><BR>>>><BR>>>>2009/3/2 Schönhammer,
Herbert <Schoenhammer.Herbert@regensburg.de>:<BR>>>>> Hi
Michael,<BR>>>>><BR>>>>> sorry I don't really understand
your hint :-(<BR>>>>><BR>>>>> At the moment I use
(wms-gui-settings): "image/png"<BR>>>>><BR>>>>> But
there is no difference between "image/png" and<BR>>>>"image/png;
mode=24bit".<BR>>>>><BR>>>>> Only the settings in the
mapfile determine the outputformat.<BR>>>>So the following always
generates a 8bit output. In this case,<BR>>>>the printig of the picture
in the legend is okay, but the<BR>>>>quality of the map is very very
poor.<BR>>>>><BR>>>>> # 8 Bit Farbe<BR>>>>>
OUTPUTFORMAT<BR>>>>> NAME
'AGG_Q'<BR>>>>> DRIVER
AGG/PNG<BR>>>>> IMAGEMODE
RGB<BR>>>>> FORMATOPTION
"QUANTIZE_FORCE=ON"<BR>>>>> FORMATOPTION
"QUANTIZE_DITHER=OFF"<BR>>>>> FORMATOPTION
"QUANTIZE_COLORS=256"<BR>>>>>
END<BR>>>>><BR>>>>> So I want a map with 24bit
color.<BR>>>>><BR>>>>> Please: Could you give me some
more hints?<BR>>>>><BR>>>>> What shall I use ?
"image/png" or "image/png; mode=24bit"
in<BR>>>>wms-settings?<BR>>>>> What settings in the mapfile
should be done in this case ?<BR>>>>><BR>>>>>
regards<BR>>>>> Herbert
Schönhammer<BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>>>-----Ursprüngliche
Nachricht-----<BR>>>>>>Von:
mapbender_users-bounces@lists.osgeo.org<BR>>>>>>[<A
href="mailto:mapbender_users-bounces@lists.osgeo.org">mailto:mapbender_users-bounces@lists.osgeo.org</A>]
Im Auftrag<BR>>>>>>von Michael
Schulz<BR>>>>>>Gesendet: Montag, 2. März 2009
14:39<BR>>>>>>An: Mapbender User
List<BR>>>>>>Betreff: Re: [Mapbender-users] MB 2.5: Problems with
legends<BR>>>>>>in pdf-print using mapserver's
agg<BR>>>>>><BR>>>>>><BR>>>>>>Hello
Mr. Schönhammer,<BR>>>>>><BR>>>>>>are you using
imagemode "image/png;24bit mode" for this service
in<BR>>>>>>Mapbender? Then this could be the problem,
because<BR>>printPDF sets the<BR>>>>>>imageformat for the maps
and the legend icons to image/png.<BR>>>>Then
maybe<BR>>>>>>your customized outputformat isn't used anymore...
In the GUI the<BR>>>>>>imageformats are used as defined in gui
wms settings.<BR>>>>>><BR>>>>>>Chees, Michael
Schulz<BR>>>>>><BR>>>>>><BR>>>>>><BR>>>>>>2009/3/2
Schönhammer, Herbert
<Schoenhammer.Herbert@regensburg.de>:<BR>>>>>>> Hi
list,<BR>>>>>>><BR>>>>>>> I have a new
strange problem with pdf-print in Mapbender
2.5.<BR>>>>>>><BR>>>>>>> Lines should be
rendered with rounded linejoins. So I'm<BR>>>>>>using mapserver
agg<BR>>>>>>> - renderer with an outputformat defined
like:<BR>>>>>>><BR>>>>>>>
OUTPUTFORMAT<BR>>>>>>> ##NAME
png<BR>>>>>>> ##DRIVER
"GD/PNG"<BR>>>>>>> MIMETYPE
"image/png"<BR>>>>>>> NAME
'AGGA'<BR>>>>>>> DRIVER
AGG/PNG<BR>>>>>>> EXTENSION
PNG<BR>>>>>>> IMAGEMODE
RGBA<BR>>>>>>> TRANSPARENT
ON<BR>>>>>>>
END<BR>>>>>>><BR>>>>>>><BR>>>>>>>
Things are done well<BR>>>>>>><BR>>>>>>> in
the map<BR>>>>>>> and in the legend of the
gui.<BR>>>>>>><BR>>>>>>><BR>>>>>>>
Things are going wrong in printing the legend in
pdf-print.<BR>>>>>>> The legend picture is drawn with a black
background. So the<BR>>>>>>text of
the<BR>>>>>>> legend is not readable anymore. (Please see
examples in<BR>>>>the
appendix)<BR>>>>>>><BR>>>>>>><BR>>>>>>>
Until now I used gd-driver. With gd-driver all things
are<BR>>>>>>going
right.<BR>>>>>>><BR>>>>>>> The background of
the legend picture is defined transparent.<BR>>>>>>So the
same<BR>>>>>>> legend picture my be used in different guis
(with different<BR>>>>>>> background-color) and in
pdf-Print.<BR>>>>>>><BR>>>>>>>
LEGEND<BR>>>>>>> STATUS
ON<BR>>>>>>> KEYSIZE 298
398<BR>>>>>>> KEYSPACING 10
1<BR>>>>>>>
LABEL<BR>>>>>>> TYPE
TRUETYPE<BR>>>>>>> FONT
"verdana"<BR>>>>>>> SIZE
8<BR>>>>>>> POSITION
lc<BR>>>>>>> END # END
LABEL<BR>>>>>>> TRANSPARENT
ON<BR>>>>>>> IMAGECOLOR 255 255
255<BR>>>>>>> END
#LEGEND<BR>>>>>>><BR>>>>>>> I'm not able to
detect any difference in the pictures<BR>>>>>>produced by gd or
by<BR>>>>>>> agg. In all tools (even photo-editors) the
background is<BR>>displayed<BR>>>>>>> transparent. Only in
mapbender pdf-print the background is<BR>>>>>>displayed
in<BR>>>>>>> black. So I think, the solution could be in
pdf-print ?<BR>>>>>>><BR>>>>>>> Has anybody
observed similar problems ?<BR>>>>>>> Has anybody a tipp
?<BR>>>>>>><BR>>>>>>> Thanks a
lot<BR>>>>>>> Herbert
Schönhammer<BR>>>>>>><BR>>>>>>>
_______________________________________________<BR>>>>>>>
Mapbender_users mailing list<BR>>>>>>>
Mapbender_users@lists.osgeo.org<BR>>>>>>> <A
href="http://lists.osgeo.org/mailman/listinfo/mapbender_users">http://lists.osgeo.org/mailman/listinfo/mapbender_users</A><BR>>>>>>><BR>>>>>>><BR>>>>>><BR>>>>>><BR>>>>>><BR>>>>>>--<BR>>>>>>-----------------------------------------------------------<BR>>>>>>Michael
Schulz<BR>>>>>>mschulz@webgis.de<BR>>>>>><BR>>>>>>in
medias res<BR>>>>>>Gesellschaft für Informationstechnologie
mbH<BR>>>>>><BR>>>>>>In den Weihermatten
66<BR>>>>>>79108
Freiburg<BR>>>>>><BR>>>>>>Tel +49 (0)761
556959-5<BR>>>>>>Fax +49 (0)761
556959-6<BR>>>>>><BR>>>>>><A
href="http://www.webgis.de">http://www.webgis.de</A> / <A
href="http://www.zopecms.de">http://www.zopecms.de</A><BR>>>>>>-----------------------------------------------------------<BR>>>>>>Geschäftsführer:
Stefan Giese, Dr. Christof Lindenbeck<BR>>>>>>Eingetragen im
Handelsregister HRB 5930 beim Amtsgericht
Freiburg<BR>>>>>>_______________________________________________<BR>>>>>>Mapbender_users
mailing
list<BR>>>>>>Mapbender_users@lists.osgeo.org<BR>>>>>><A
href="http://lists.osgeo.org/mailman/listinfo/mapbender_users">http://lists.osgeo.org/mailman/listinfo/mapbender_users</A><BR>>>>>><BR>>>>>
_______________________________________________<BR>>>>>
Mapbender_users mailing list<BR>>>>>
Mapbender_users@lists.osgeo.org<BR>>>>> <A
href="http://lists.osgeo.org/mailman/listinfo/mapbender_users">http://lists.osgeo.org/mailman/listinfo/mapbender_users</A><BR>>>>><BR>>>><BR>>>><BR>>>><BR>>>>--<BR>>>>-----------------------------------------------------------<BR>>>>Michael
Schulz<BR>>>>mschulz@webgis.de<BR>>>><BR>>>>in medias
res<BR>>>>Gesellschaft für Informationstechnologie
mbH<BR>>>><BR>>>>In den Weihermatten 66<BR>>>>79108
Freiburg<BR>>>><BR>>>>Tel +49 (0)761
556959-5<BR>>>>Fax +49 (0)761
556959-6<BR>>>><BR>>>><A
href="http://www.webgis.de">http://www.webgis.de</A> / <A
href="http://www.zopecms.de">http://www.zopecms.de</A><BR>>>>-----------------------------------------------------------<BR>>>>Geschäftsführer:
Stefan Giese, Dr. Christof Lindenbeck<BR>>>>Eingetragen im
Handelsregister HRB 5930 beim Amtsgericht
Freiburg<BR>>>>_______________________________________________<BR>>>>Mapbender_users
mailing list<BR>>>>Mapbender_users@lists.osgeo.org<BR>>>><A
href="http://lists.osgeo.org/mailman/listinfo/mapbender_users">http://lists.osgeo.org/mailman/listinfo/mapbender_users</A><BR>>>><BR>>>
_______________________________________________<BR>>> Mapbender_users
mailing list<BR>>> Mapbender_users@lists.osgeo.org<BR>>> <A
href="http://lists.osgeo.org/mailman/listinfo/mapbender_users">http://lists.osgeo.org/mailman/listinfo/mapbender_users</A><BR>>><BR>><BR>><BR>><BR>>--<BR>>-----------------------------------------------------------<BR>>Michael
Schulz<BR>>mschulz@webgis.de<BR>><BR>>in medias res<BR>>Gesellschaft
für Informationstechnologie mbH<BR>><BR>>In den Weihermatten
66<BR>>79108 Freiburg<BR>><BR>>Tel +49 (0)761 556959-5<BR>>Fax
+49 (0)761 556959-6<BR>><BR>><A
href="http://www.webgis.de">http://www.webgis.de</A> / <A
href="http://www.zopecms.de">http://www.zopecms.de</A><BR>>-----------------------------------------------------------<BR>>Geschäftsführer:
Stefan Giese, Dr. Christof Lindenbeck<BR>>Eingetragen im Handelsregister HRB
5930 beim Amtsgericht
Freiburg<BR>>_______________________________________________<BR>>Mapbender_users
mailing list<BR>>Mapbender_users@lists.osgeo.org<BR>><A
href="http://lists.osgeo.org/mailman/listinfo/mapbender_users">http://lists.osgeo.org/mailman/listinfo/mapbender_users</A><BR>></FONT>
</P></BODY></HTML>