<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Sowmya,</div>
<div><br>
</div>
<div>Looks like you might have a smart-quote there.</div>
<div><br>
</div>
<div>Try</div>
<div><br>
</div>
<div>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
OUTPUTFORMAT<o:p></o:p></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
                                NAME kml<o:p></o:p></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
                                DRIVER "KML"<o:p></o:p></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
                                MIMETYPE "application/vnd.google-earth.kml+xml"<o:p></o:p></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
                                IMAGEMODE RGB<o:p></o:p></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
                                EXTENSION "kml"<o:p></o:p></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
                                <b>FORMATOPTION "ATTACHMENT=lidar.kml" #name of kml file returned </b>- This is my line 308<o:p></o:p></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
                                FORMATOPTION "maxfeaturestodraw=100"<o:p></o:p></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
                END</p>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
<div>
<div>
<div>
<div>-- </div>
<div>Michael Smith</div>
</div>
<div>US Army Corps</div>
<div>Remote Sensing GIS/Center</div>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Sowmya Tiramdasu <<a href="mailto:stiramdasu@qcoherent.com">stiramdasu@qcoherent.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, August 14, 2012 8:47 AM<br>
<span style="font-weight:bold">To: </span>'Mapserver-users' <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<span style="font-weight:bold">Subject: </span>[mapserver-users] KML generation<br>
<span style="font-weight:bold">Resent-From: </span>Michael Smith <<a href="mailto:michael.smith@usace.army.mil">michael.smith@usace.army.mil</a>><br>
</div>
<div><br>
</div>
<div 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">
<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;}
/* 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-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@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 lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  I know this would be a very basic question. I tried to look around on the web and in the previous lists emails. But, somehow  I could not get a solution. Sorry for bothering evryone with this basic question.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  I am trying get a KML output from my mapserver. I was succesfull in getting a png output which means all my layers are being rendered correctly. Now I modified my mapfile . I removed the IMAGETYPE = png from the MAP Section and added
 the following:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">                OUTPUTFORMAT<o:p></o:p></p>
<p class="MsoNormal">                                NAME kml<o:p></o:p></p>
<p class="MsoNormal">                                DRIVER "KML"<o:p></o:p></p>
<p class="MsoNormal">                                MIMETYPE "application/vnd.google-earth.kml+xml"<o:p></o:p></p>
<p class="MsoNormal">                                IMAGEMODE RGB<o:p></o:p></p>
<p class="MsoNormal">                                EXTENSION "kml"<o:p></o:p></p>
<p class="MsoNormal">                                <b>FORMATOPTION ’ATTACHMENT=lidar.kml’ #name of kml file returned
</b>- This is my line 308<o:p></o:p></p>
<p class="MsoNormal">                                FORMATOPTION "maxfeaturestodraw=100"<o:p></o:p></p>
<p class="MsoNormal">                END<o:p></o:p></p>
<p class="MsoNormal">  Now when I try to query the mapserver in mode=map, I am getting a parsing error.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">getString(): Symbol definition error. Parsing error near (’):(line 308).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help will be greatly appreciated. Thanks in advance!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sowmya. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="color: rgb(31, 73, 125); font-family: Arial, sans-serif; ">_______________________________</span></b><span style="font-size: 10pt; color: rgb(31, 73, 125); font-family: Arial, sans-serif; "><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 13.5pt; color: rgb(31, 73, 125); font-family: Tahoma, sans-serif; ">Sowmya Tiramdasu</span><span style="font-size: 10pt; color: rgb(31, 73, 125); font-family: Arial, sans-serif; "><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="color: rgb(0, 112, 192); font-family: Arial, sans-serif; ">QCoherent Software<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125); font-family: Arial, sans-serif; ">9668 Madison Blvd., Suite 202</span><span style="font-size: 12pt; color: rgb(31, 73, 125); font-family: 'Times New Roman', serif; "><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125); font-family: Arial, sans-serif; ">Madison, AL 35758</span><span style="font-size: 12pt; color: rgb(31, 73, 125); font-family: 'Times New Roman', serif; "><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125); font-family: Arial, sans-serif; ">(256) 461-8289 Telephone
</span><span style="font-size: 12pt; color: rgb(31, 73, 125); font-family: 'Times New Roman', serif; "><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125); font-family: Arial, sans-serif; ">(256) 461-8249 Fax</span><span style="font-size: 12pt; color: rgb(31, 73, 125); font-family: 'Times New Roman', serif; "><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="http://www.geocue.com/"><span style="color:blue">www.geocue.com</span></a></span><span style="font-size: 12pt; color: rgb(31, 73, 125); font-family: 'Times New Roman', serif; "><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</span>
</body>
</html>