<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Len,<br>
<br>
I've found a PHP based solution. Have a look at my recent
comments in Ticket 108:<br>
<br>
<a class="moz-txt-link-freetext" href="http://geomoose.org/trac/ticket/108">http://geomoose.org/trac/ticket/108</a><br>
<br>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
<br>
On 11/29/2010 7:48 AM, Len Kne wrote:
<blockquote
cite="mid:78A4E9447F5C9040A0930D07B53ED0831F095A50@ex2010.houstonengineeringinc.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<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;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas","serif";
        color:black;}
span.EmailStyle19
        {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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">I’ll add on to this with a workaround I use.
Create two OUTPUTFORMATs (I do this in
geomoose_globals.map), one uses AGG, the other GD. 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:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> $url = $url .
'&map_IMAGETYPE=print';<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent: 0.5in;"><span
style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">$url = $url . '&mode=map';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">Len<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<div>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none; border-color:
rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif"; color:
windowtext;">From:</span></b><span style="font-size:
10pt; font-family:
"Tahoma","sans-serif"; color:
windowtext;"> Brent Fraser
[<a class="moz-txt-link-freetext" 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 class="moz-txt-link-abbreviated" href="mailto:geomoose-users@lists.sourceforge.net">geomoose-users@lists.sourceforge.net</a><br>
<b>Subject:</b> Re: [Geomoose-users] Print Error<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dante,<br>
<br>
The problem is that the PHP functions Geomoose uses for
creating the print image do not support transparent PNGs very
well.<br>
<br>
The short answer is to change the PNG image type that
mapserver is producing to:<br>
<br>
IMAGETYPE GD_PNG<br>
OUTPUTFORMAT<br>
NAME GD_PNG<br>
DRIVER "GD/PNG"<br>
MIMETYPE "image/png"<br>
IMAGEMODE RGB <br>
EXTENSION "png"<br>
END<br>
<br>
But you'll lose all the great AGG rendering features of
mapserver (antialiasing, etc).<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,
<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 !!
<br>
<br>
Can you say me what happens?<br>
<br>
Thanks for all<br>
<br>
Dante Fuster<br>
<br>
<o:p></o:p></p>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>------------------------------------------------------------------------------<o:p></o:p></pre>
<pre>Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!<o:p></o:p></pre>
<pre>Tap into the largest installed PC base & 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 moz-do-not-send="true" href="http://p.sf.net/sfu/intelisp-dev2dev">http://p.sf.net/sfu/intelisp-dev2dev</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Geomoose-users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:Geomoose-users@lists.sourceforge.net">Geomoose-users@lists.sourceforge.net</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="https://lists.sourceforge.net/lists/listinfo/geomoose-users">https://lists.sourceforge.net/lists/listinfo/geomoose-users</a><o:p></o:p></pre>
</div>
</blockquote>
</body>
</html>