<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>There is a dark side in closing Mapserver issues just because they are old and still not fixed. Good that you managed to find that closed issue and kame your KML output to work. I am going to re-open the issue and add a link into this mail thread.</p>
<p><br>
</p>
<p>-Jukka Rahkonen- <br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Lähettäjä:</b> mapserver-users <mapserver-users-bounces@lists.osgeo.org> käyttäjän puolestaIvan Ogasawara <ivan.ogasawara@gmail.com><br>
<b>Lähetetty:</b> 16. joulukuuta 2017 1:06<br>
<b>Vastaanottaja:</b> Stephen Woodbridge<br>
<b>Kopio:</b> mapserver-users@lists.osgeo.org<br>
<b>Aihe:</b> Re: [mapserver-users] mapserver with kml</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Dear all,</div>
<div><br>
</div>
I think the problem is related to this:
<div><br>
</div>
<div><a href="https://github.com/mapserver/mapserver/issues/4938">https://github.com/mapserver/mapserver/issues/4938</a><br>
<div><br>
</div>
<div>because using this URL works fine:</div>
<div><br>
</div>
<div><a href="http://172.17.0.2?map=/maps/dengue-Rio-de-Janeiro.map&mode=map&MAP_IMAGETYPE=KML&layers=RIO_DE_JANEIRO">http://172.17.0.2?map=/maps/dengue-Rio-de-Janeiro.map&mode=map&MAP_IMAGETYPE=KML&layers=RIO_DE_JANEIRO</a><br>
</div>
<div><br>
</div>
</div>
<div>I changed the image width/height ratio and works fine too!<br>
</div>
<div><br>
</div>
<div>thanks so much!</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-12-14 18:00 GMT-04:00 Ivan Ogasawara <span dir="ltr">
<<a href="mailto:ivan.ogasawara@gmail.com" target="_blank">ivan.ogasawara@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">Hi Stephen,<br>
<div class="gmail_extra"><br>
<div class="gmail_quote"><span class="">2017-12-14 15:44 GMT-04:00 Stephen Woodbridge
<span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
The "+" char in the URL is interpreted as a space you have to ecapce this as %2B<br>
</blockquote>
<div><br>
</div>
</span>
<div>You're right, thanks .. but there is the same issue ... </div>
<span class="">
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<br>
But you should be able to give the OUTPUTFORMAT block an NAME "kml" and give that the appropriate parameters like:<br>
<br>
EXTENSION "kml"<br>
MIMETYPE "application/vnd.google-earth.<wbr>kml+xml"<br>
<br>
and whatever other parameters are needed, then request the format "kml"<br>
</blockquote>
<div><br>
</div>
</span>
<div>yes .. this is the kml outputformat that I am using:</div>
<div><br>
</div>
<div>
<div>OUTPUTFORMAT</div>
<div> NAME "kml"</div>
<div> DRIVER KML</div>
<div> MIMETYPE "application/vnd.google-earth.<wbr>kml+xml"</div>
<div> IMAGEMODE RGBA</div>
<div> EXTENSION "kml"</div>
<div> FORMATOPTION 'ATTACHMENT=RIO_DE_JANEIRO.<wbr>kml'</div>
<div> END</div>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>