<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" 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 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:"Copperplate Gothic Bold";
        panose-1:2 14 7 5 2 2 6 2 4 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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 lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Rick,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Your right I have never tried to
print the DRGs. Dan would know better than I would what your options might be
to get around this. It might involve code changes to print.php.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-Brian<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </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:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> 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<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Brian,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Thanks for the
information. 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.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>My other question
now is; I am trying to get the LMIC’s USGS DRG’s to print but I get an
error when I try that. I have narrowed the culprit down to the
PrintWMS.map file in Resources. 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”. However, the DRG’s are sent from LMIC as
PNG’s. The printwms.map cannot handle these unless I change the
“wms_format” to image/png. When I do this then the aerial photos don’t
print.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Is there a way to
adjust the printwms.map file to accept both of these formats from LMIC? I
would guess this would be a problem for everyone trying to print these.
Although maybe a lot of people have not tried to print out the drg’s on a map.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>I have included
the printwms.map file for reference.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>MAP<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'> LAYER<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
NAME "wms_temp"<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
TYPE RASTER<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
STATUS DEFAULT<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
CONNECTION "url"<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
CONNECTIONTYPE WMS<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
METADATA<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
"wms_srs" ""<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
"wms_name" ""<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
"wms_server_version" ""<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
"wms_format" "image/jpeg"<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
END<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'> END<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>END</span><span
style='font-size:10.0pt;color:blue'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Thanks,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p> </o:p></span></p>
<div>
<div>
<div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Copperplate Gothic Bold","sans-serif";
color:blue'>Rick Moore<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Copperplate Gothic Bold","sans-serif";
color:blue'>GIS Specialist<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Copperplate Gothic Bold","sans-serif";
color:blue'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Water Resources
Center<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>184 Trafton
Science Center South<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Minnesota State
University, Mankato<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Mankato,
MN 56001<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'> <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>(507) 389-3267<o:p></o:p></span></p>
</div>
</div>
</div>
<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>richard.moore@mnsu.edu<o:p></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:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> 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<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>Rick,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>This is one of the gotcha’s with
the demo’s. Currently there is only one configuration.php file for both
demo’s. 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.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>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 mapfiles. Then change the include file in the
print.php file to point to the other configuration file (something like
config_statedemo.php). I don’t have the files with me know but if you
need an example I could create one for you.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Hope this helps,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Brian<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </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:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> 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<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt'>I am having problems with the
Print to PDF in the State Demo example.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'>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.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'>Available Printing Formats:</span></b><span style='font-size:9.0pt;
font-family:"Arial","sans-serif";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<o:p></o:p></b></span></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'>It seems like it is referencing a path location to the county demo
application as show by the path. I haven’t been able to find a location
that states where to look for the files when it prints.<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
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. Also
I do have FPDF installed since the County Demo works for me.<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'>Thanks,</span></b><span style='font-size:10.0pt'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p>
<div>
<div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Copperplate Gothic Bold","sans-serif"'>Rick
Moore<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Copperplate Gothic Bold","sans-serif"'>GIS
Specialist<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Copperplate Gothic Bold","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'>Water Resources Center<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'>184 Trafton Science Center
South<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'>Minnesota State University,
Mankato<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'>Mankato, MN 56001<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'> <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'>(507) 389-3267<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><span style='font-size:10.0pt'>richard.moore@mnsu.edu</span><o:p></o:p></p>
</div>
</body>
</html>