<html><body bgcolor="#FFFFFF"><div>GeoMoose tells the PHP what layers to print and the size and extent and scale and resolution. The PHP code computes image size and extent (adjusting for aspect ratio of the paper) to request. The images are requested and assembled using GD into a single image. My guess is you hit a bug in GD.</div><div><br></div><div>Most of the real work is in print_util.php (if you want to add statements to log the actual requests the PHP code makes to the WMS.)<br><br><div><br></div></div><div><br>On Nov 23, 2011, at 8:40, "Bistrais, Bob" <<a href="mailto:Bob.Bistrais@maine.gov">Bob.Bistrais@maine.gov</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
<div class="Section1">
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy">Thanks Jim. Yeah, I can’t understand it
either- the display is perfect in the application, it’s just the print map
where I have this problem. This occurs with the pdfd, html and image options,
so it’s not limited to pdf, as I originally thought. I’ve been trying to
examine the php files, but does anyone know how the map image goes from
application window to print? Apparently, not just copying the image.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;
font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> Jim Klassen
[mailto:klassen.js@gmail.com] <br>
<b><span style="font-weight:bold">Sent:</span></b> Tuesday, November 22, 2011
8:32 PM<br>
<b><span style="font-weight:bold">To:</span></b> Bistrais, Bob<br>
<b><span style="font-weight:bold">Cc:</span></b> Bob Basques;
<<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [Geomoose-users]
Printing wms layers</span></font><o:p></o:p></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">PNG is good. Don't use IE6.. It can't handle PNG24 with alpha.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">Not sure what that has to do with printing though as that all happens
on the server in PHP.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
On Nov 22, 2011, at 16:01, "Bistrais, Bob" <<a href="mailto:Bob.Bistrais@maine.gov"><a href="mailto:Bob.Bistrais@maine.gov">Bob.Bistrais@maine.gov</a></a>> wrote:<o:p></o:p></span></font></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" type="cite">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;
color:navy">Yes, the WMS is outputting PNG. What would be recommended
instead?<u1:p></u1:p></span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;
color:navy"><u1:p> </u1:p></span></font><o:p></o:p></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:
bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:
10.0pt;font-family:Tahoma"> Bob Basques [mailto:Bob.Basques@ci.stpaul.mn.us] <br>
<b><span style="font-weight:bold">Sent:</span></b> Tuesday, November 22, 2011
4:54 PM<br>
<b><span style="font-weight:bold">To:</span></b> <a href="mailto:geomoose-users@lists.osgeo.org"><a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a></a>;
Bistrais, Bob<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [Geomoose-users]
Printing wms layers</span></font><u1:p></u1:p><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u1:p> </u1:p><o:p></o:p></span></font></p>
<p style="margin:0in;margin-bottom:.0001pt"><font size="3" face="Comic Sans MS"><span style="font-size:12.0pt;font-family:"Comic Sans MS"">Something to look at . . .</span></font>
<u1:p></u1:p><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u1:p> </u1:p><o:p></o:p></span></font></p>
<p style="margin:0in;margin-bottom:.0001pt"><font size="3" face="Comic Sans MS"><span style="font-size:12.0pt;font-family:"Comic Sans MS"">What is the format of the
images from the WMS service?</span></font> <u1:p></u1:p><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u1:p> </u1:p><o:p></o:p></span></font></p>
<p style="margin:0in;margin-bottom:.0001pt"><font size="3" face="Comic Sans MS"><span style="font-size:12.0pt;font-family:"Comic Sans MS"">PNG24 vs other PNG formats
have caused problem in cross browser situations. Some versions of IE
don't like one or the other for example.</span></font> <u1:p></u1:p><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u1:p> </u1:p><o:p></o:p></span></font></p>
<p style="margin:0in;margin-bottom:.0001pt"><font size="3" face="Comic Sans MS"><span style="font-size:12.0pt;font-family:"Comic Sans MS"">bobb</span></font> <u1:p></u1:p><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u1:p> </u1:p><o:p></o:p></span></font></p>
<p style="margin:0in;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
<br>
>>> "Bistrais, Bob" <<a href="mailto:Bob.Bistrais@maine.gov"><a href="mailto:Bob.Bistrais@maine.gov">Bob.Bistrais@maine.gov</a></a>> wrote:<u1:p></u1:p><o:p></o:p></span></font></p>
<table class="MsoNormalTable" border="0" cellpadding="0" bgcolor="#F3F3F3" style="margin-left:11.25pt;background:#F3F3F3">
<tbody><tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<div style="border:none;border-left:solid #050505 1.0pt;padding:0in 0in 0in 5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I had
brought up this question before but it seems to be happening again. I
have a few layers that I consume in GeoMoose by WMS. Some of these are
vecot line layers such as roads. They work perfectly in GeoMoose map
view. But when I compose a printable map, these layers have a black
background which obscures other layers and just plain looks ugly. If I
set the “transparent” property to false, the black background goes
away, but then I can’t see any underlying data. <o style="font-size: 10.0pt; font-family: Arial" p="#DEFAULT"></o></span></font> <u1:p></u1:p><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><o style="font-size: 10.0pt; font-family: Arial" p="#DEFAULT"> </o></span></font>
<u1:p></u1:p><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">By the
way, I do have control over the WMS services in this case. I tried to
set Offsite to 0 0 0, but that didn’t seem to help either. The WMS is
at MapServer 6.0.1. Any suggestions?<o style="font-size: 10.0pt; font-family: Arial" p="#DEFAULT"></o></span></font>
<u1:p></u1:p><o:p></o:p></p>
</div>
</div>
</td>
</tr>
</tbody></table>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u1:p> </u1:p><o:p></o:p></span></font></p>
</div>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" type="cite">
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org"><a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a></a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users"><a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a></a><o:p></o:p></span></font></p>
</div>
</blockquote>
</div>
</div></blockquote></body></html>