<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Yeah... I should really look at fixing that bug.&nbsp; Most of the WMS services support JPEG, so that's what I used.&nbsp; The other problem is that I do not believe that GD supports interlaced PNG's which is what the DRG's most likely are...&nbsp; <br>it may just require more testing and development on my part.&nbsp; This might be something I'm lamenting developing as I'd like to rollout GM 2.0beta before the Thanksgiving holiday.<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "Fischer, Brian" &lt;bfischer@houstonengineeringinc.com&gt;<br><b><span style="font-weight: bold;">To:</span></b>
 "Moore, Richard J" &lt;richard.moore@mnsu.edu&gt;; geomoose-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, November 6, 2008 9:45:48 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Geomoose-users] Print to PDF<br></font><br>



 
 
<style>
<!--
 
 _filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 _filtered {font-family:"Copperplate Gothic Bold";panose-1:2 14 7 5 2 2 6 2 4 4;}
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:"Calibri", "sans-serif";color:windowtext;font-weight:normal;font-style:normal;text-decoration:none none;}
span.EmailStyle18
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
span.EmailStyle19
        {font-family:"Calibri", "sans-serif";color:blue;font-weight:normal;font-style:normal;text-decoration:none none;}
span.EmailStyle20
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
.MsoChpDefault
        {font-size:10.0pt;}
 _filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {}
-->
</style>



<div class="Section1">

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Rick,</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Your right I have never tried to
print the DRGs.&nbsp; Dan would know better than I would what your options might be
to get around this.&nbsp; It might involve code changes to print.php.</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">-Brian</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">From:</span></b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;"> Moore, Richard J
[mailto:richard.moore@mnsu.edu] <br>
<b>Sent:</b> Thursday, November 06, 2008 9:37 AM<br>
<b>To:</b> Fischer, Brian; geomoose-users@lists.sourceforge.net<br>
<b>Subject:</b> RE: [Geomoose-users] Print to PDF</span></p> 

</div>

</div>

<p class="MsoNormal"> &nbsp;</p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">Brian,</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">Thanks for the
information.&nbsp; I was able to create a configuration.php and print.php file
for each of the applications I have and then just changed the reference to the
print.php file in my application.xml file in htdocs.</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">My other question
now is;&nbsp; I am trying to get the LMIC’s USGS DRG’s to print but I get an
error when I try that.&nbsp; I have narrowed the culprit down to the
PrintWMS.map file in Resources.&nbsp; The aerial photos from LMIC come in as
jpeg’s and the printwms.map can handle because of the reference to this image
type(“wms_format” “image/jpeg”.&nbsp; However, the DRG’s are sent from LMIC as
PNG’s.&nbsp; The printwms.map cannot handle these unless I change the
“wms_format” to image/png.&nbsp; When I do this then the aerial photos don’t
print.</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">Is there a way to
adjust the printwms.map file to accept both of these formats from LMIC?&nbsp; I
would guess this would be a problem for everyone trying to print these.&nbsp;
Although maybe a lot of people have not tried to print out the drg’s on a map.</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">I have included
the printwms.map file for reference.</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;"> &nbsp;</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">MAP</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LAYER</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "wms_temp"</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
TYPE RASTER</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
STATUS DEFAULT</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CONNECTION "url"</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CONNECTIONTYPE WMS</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
METADATA</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
"wms_srs" ""</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
"wms_name" ""</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
"wms_server_version" ""</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
"wms_format" "image/jpeg"</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
END</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">END</span><span style="font-size: 10pt; color: blue;"></span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">Thanks,</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;"> &nbsp;</span></p> 

<div>

<div>

<div>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Copperplate Gothic Bold&quot;,&quot;sans-serif&quot;; color: blue;">Rick Moore</span></p> 

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Copperplate Gothic Bold&quot;,&quot;sans-serif&quot;; color: blue;">GIS Specialist</span></p> 

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Copperplate Gothic Bold&quot;,&quot;sans-serif&quot;; color: blue;"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">Water Resources
Center</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">184 Trafton
Science Center South</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">Minnesota State
University, Mankato</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">Mankato,
MN&nbsp;&nbsp; 56001</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">&nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">(507) 389-3267</span></p> 

</div>

</div>

</div>

<p class="MsoNormal"><span style="font-size: 10pt; color: blue;">richard.moore@mnsu.edu</span></p> 

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">From:</span></b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;"> Fischer, Brian
[mailto:bfischer@houstonengineeringinc.com] <br>
<b>Sent:</b> Wednesday, November 05, 2008 9:31 PM<br>
<b>To:</b> Moore, Richard J; geomoose-users@lists.sourceforge.net<br>
<b>Subject:</b> RE: [Geomoose-users] Print to PDF</span></p> 

</div>

</div>

<p class="MsoNormal"> &nbsp;</p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Rick,</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">This is one of the gotcha’s with
the demo’s.&nbsp; Currently there is only one configuration.php file for both
demo’s.&nbsp; I decided rather than create the extra files I would need to get
both working I would just leave it working for the county demo.</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">If you want to get the printing
working in both demo’s you would need to duplication the configuration.php and
print.php files and change the path in the configuration.php file to reference
the state_demo&nbsp; mapfiles.&nbsp; Then change the include file in the
print.php file to point to the other configuration file (something like
config_statedemo.php).&nbsp; I don’t have the files with me know but if you
need an example I could create one for you.</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Hope this helps,</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Brian</span></p> 

<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">From:</span></b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;"> Moore, Richard J
[mailto:richard.moore@mnsu.edu] <br>
<b>Sent:</b> Wednesday, November 05, 2008 4:37 PM<br>
<b>To:</b> 'geomoose-users@lists.sourceforge.net'<br>
<b>Subject:</b> [Geomoose-users] Print to PDF</span></p> 

</div>

</div>

<p class="MsoNormal"> &nbsp;</p> 

<p class="MsoNormal"><span style="font-size: 10pt;">I am having problems with the
Print to PDF in the State Demo example.</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;">If I run the Print to PDF in
the County Demo application it works perfectly but when I try it in the State
Demo application, I get this error message.</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;"> &nbsp;</span></p> 

<p class="MsoNormal"><b><span style="font-size: 9pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;">Available Printing Formats:</span></b><span style="font-size: 9pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"><br>
<br>
<b>Warning</b>: [MapServer Error]: msLoadMap():
(/ms4w/apps/geomoose/maps_countydemo/./parks/parks_8bit.map) in <b>C:\ms4w\apps\GeoMOOSE\htdocs\php\print.php</b>
on line <b>177</b><br>
<br>
<b>Warning</b>: Failed to open map file /ms4w/apps/geomoose/maps_countydemo/./parks/parks_8bit.map
in <b>C:\ms4w\apps\GeoMOOSE\htdocs\php\print.php</b> on line <b>177</b><br>
<br>
<b>Fatal error</b>: Call to a member function setSize() on a non-object in <b>C:\ms4w\apps\GeoMOOSE\htdocs\php\print.php</b>
on line <b>178</b></span></p> 

<p class="MsoNormal"><b><span style="font-size: 9pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"> &nbsp;</span></b></p> 

<p class="MsoNormal"><b><span style="font-size: 9pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"> &nbsp;</span></b></p> 

<p class="MsoNormal"><b><span style="font-size: 9pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"> &nbsp;</span></b></p> 

<p class="MsoNormal"><b><span style="font-size: 9pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;">It seems like it is referencing a path location to the county demo
application as show by the path.&nbsp; I haven’t been able to find a location
that states where to look for the files when it prints.</span></b></p> 

<p class="MsoNormal"><b><span style="font-size: 9pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"> &nbsp;</span></b></p> 

<p class="MsoNormal"><b><span style="font-size: 9pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;">Any assistance would be helpful since it seems like it is a
problem with the State Demo application since the County demo works.&nbsp; Also
I do have FPDF installed since the County Demo works for me.</span></b></p> 

<p class="MsoNormal"><b><span style="font-size: 9pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"> &nbsp;</span></b></p> 

<p class="MsoNormal"><b><span style="font-size: 9pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;">Thanks,</span></b><span style="font-size: 10pt;"></span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;"> &nbsp;</span></p> 

<div>

<div>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Copperplate Gothic Bold&quot;,&quot;sans-serif&quot;;">Rick
Moore</span></p> 

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Copperplate Gothic Bold&quot;,&quot;sans-serif&quot;;">GIS
Specialist</span></p> 

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Copperplate Gothic Bold&quot;,&quot;sans-serif&quot;;"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;">Water Resources Center</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;">184 Trafton Science Center
South</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;">Minnesota State University,
Mankato</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;">Mankato, MN&nbsp;&nbsp; 56001</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;">&nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt;">(507) 389-3267</span></p> 

</div>

</div>

<p class="MsoNormal"><span style="font-size: 10pt;">richard.moore@mnsu.edu</span></p> 

</div>

</div></div></div><br>

      </body></html>