<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi Brent<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Nice, works for me as well.&nbsp; Just to be clear, this will allow PNG support, but still only GD, not AGG, right?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Len<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> Brent Fraser [mailto:bfraser@geoanalytic.com]
<br>
<b>Sent:</b> Monday, November 29, 2010 8:54 AM<br>
<b>To:</b> Len Kne<br>
<b>Cc:</b> Dante Fuster; geomoose-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Geomoose-users] Print Error<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Len,<br>
<br>
&nbsp; I've found a PHP based solution.&nbsp; Have a look at my recent comments in Ticket 108:<br>
<br>
<a href="http://geomoose.org/trac/ticket/108">http://geomoose.org/trac/ticket/108</a><br>
<br>
<br>
<o:p></o:p></p>
<pre>Best Regards,<o:p></o:p></pre>
<pre>Brent Fraser<o:p></o:p></pre>
<p class="MsoNormal"><br>
On 11/29/2010 7:48 AM, Len Kne wrote: <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">I&#8217;ll add on to this with a workaround I use.&nbsp; Create two OUTPUTFORMATs (I do this in geomoose_globals.map), one uses AGG, the other GD.&nbsp; The default is the AGG output so
 it looks nice on screen, but for printing, tell print_util.php to use the GD output by adding:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $url = $url . '&amp;map_IMAGETYPE=print';</span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">$url = $url . '&amp;mode=map';</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Len</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:-moz-use-text-color -moz-use-text-color">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> Brent Fraser [<a href="mailto:bfraser@geoanalytic.com">mailto:bfraser@geoanalytic.com</a>]
<br>
<b>Sent:</b> Sunday, November 28, 2010 10:00 AM<br>
<b>To:</b> Dante Fuster<br>
<b>Cc:</b> <a href="mailto:geomoose-users@lists.sourceforge.net">geomoose-users@lists.sourceforge.net</a><br>
<b>Subject:</b> Re: [Geomoose-users] Print Error</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">Dante,<br>
<br>
&nbsp; The problem is that the PHP functions Geomoose uses for creating the print image do not support transparent PNGs very well.<br>
<br>
&nbsp; The short answer is to change the PNG image type that mapserver is producing to:<br>
<br>
&nbsp;&nbsp;&nbsp; IMAGETYPE GD_PNG<br>
&nbsp;&nbsp;&nbsp; OUTPUTFORMAT<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME GD_PNG<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DRIVER &quot;GD/PNG&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MIMETYPE &quot;image/png&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEMODE RGB <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXTENSION &quot;png&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
<br>
But you'll lose all the great AGG rendering features of mapserver (antialiasing, etc).<br>
<br>
<br>
<br>
<o:p></o:p></p>
<pre>Best Regards,<o:p></o:p></pre>
<pre>Brent Fraser<o:p></o:p></pre>
<p class="MsoNormal"><br>
On 11/26/2010 2:31 PM, Dante Fuster wrote: <o:p></o:p></p>
<p class="MsoNormal">Hi<br>
<br>
I have a problems with the print option, I use RedHat Enterprise 5, Geomoose 2.2 and FGS with postgresql 8.4.1 and postgis 1.3.2,&nbsp;&nbsp;
<br>
The configure the aplication is OK, Show maps, search, and change visibility, but when I use de Print option (html, image or pdf) the maps show in BLACK !!&nbsp;
<br>
&nbsp; <br>
Can you say me what happens?<br>
<br>
Thanks for all<br>
<br>
Dante Fuster<br>
<br>
<br>
<o:p></o:p></p>
<pre>&nbsp;<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>------------------------------------------------------------------------------<o:p></o:p></pre>
<pre>Increase Visibility of Your 3D Game App &amp; Earn a Chance To Win $500!<o:p></o:p></pre>
<pre>Tap into the largest installed PC base &amp; get more eyes on your game by<o:p></o:p></pre>
<pre>optimizing for Intel(R) Graphics Technology. Get started today with the<o:p></o:p></pre>
<pre>Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.<o:p></o:p></pre>
<pre><a href="http://p.sf.net/sfu/intelisp-dev2dev">http://p.sf.net/sfu/intelisp-dev2dev</a><o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Geomoose-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Geomoose-users@lists.sourceforge.net">Geomoose-users@lists.sourceforge.net</a><o:p></o:p></pre>
<pre><a href="https://lists.sourceforge.net/lists/listinfo/geomoose-users">https://lists.sourceforge.net/lists/listinfo/geomoose-users</a><o:p></o:p></pre>
</div>
</body>
</html>