<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div>Hi,<br></div>
<div><br></div>
<div>Your output image looks like a projection issue. Google Maps use the espg:3857 projection, but your request is asking for SRS=epsg:4326, maybe try changing this?<br></div>
<div>Also are you trying to return KML or display an image using KML as a data source? If you are trying to return KML you'd need to use WFS rather than WMS which only returns images.<br></div>
<div><br></div>
<div>Seth</div>
<div><br></div>
<div id="sig62266145"><div class="signature">--</div>
<div class="signature">web:http://geographika.co.uk</div>
<div class="signature">twitter: @geographika</div>
</div>
<div><br></div>
<div><br></div>
<div>On Thu, Dec 14, 2017, at 01:33 AM, Ivan Ogasawara wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div defang_data-gmailquote="yes"><div dir="ltr"><div defang_data-gmailquote="yes"><div><br></div>
<div dir="ltr"><div><span>Dear all,</span><br></div>
<div><span></span><br></div>
<div><span>Anyone knows some tutorial to work with mapserver (wms) and kml?</span><br></div>
<div><span></span><br></div>
<div><span>I am trying to do it .. but with no success.</span><br></div>
<div><span></span><br></div>
<div><span>this is the local url used:</span><br></div>
<div><span></span><br></div>
<div><span><a href="http://172.17.0.2/?map=/maps/dengue-Rio-de-Janeiro.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=RIO_DE_JANEIRO&STYLES=&SRS=epsg:4326&BBOX=-43.7965385309,-23.0828926973,-43.0990394004,-22.7460202858&WIDTH=400&HEIGHT=300&FORMAT=kml.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=RIO_DE_JANEIRO&STYLES=&SRS=epsg:4326&BBOX=-43.7965385309,-23.0828926973,-43.0990394004,-22.7460202858&WIDTH=400&HEIGHT=300&FORMAT=kml">http://172.17.0.2/?map=/maps/d<wbr>engue-Rio-de-Janeiro.map&SERVI<wbr>CE=WMS&VERSION=1.1.1&REQUEST=<wbr>GetMap&LAYERS=RIO_DE_JANEIRO&<wbr>STYLES=&SRS=epsg:4326&BBOX=-<wbr>43.7965385309,-23.0828926973,-<wbr>43.0990394004,-22.7460202858&<wbr>WIDTH=400&HEIGHT=300&FORMAT=<wbr>kml.map&SERVICE=WMS&VERSION=1.<wbr>1.1&REQUEST=GetMap&LAYERS=RIO_<wbr>DE_JANEIRO&STYLES=&SRS=epsg:<wbr>4326&BBOX=-43.7965385309,-23.<wbr>0828926973,-43.0990394004,-22.<wbr>7460202858&WIDTH=400&HEIGHT=<wbr>300&FORMAT=kml</a></span><br></div>
<div><span></span><br></div>
<div><span>for image/png works fine (tested with leaflet).</span><br></div>
<div><span></span><br></div>
<div><span>Any tips?</span><br></div>
<div><span></span><br></div>
<div><span></span><br></div>
<div>Files:<br></div>
<div>* mapfiles:<br></div>
<div>  * <a href="https://pastebin.com/4EkahMZi">https://pastebin.com/4EkahMZi</a><br></div>
<div>  * <a href="https://pastebin.com/DVSt4mmS">https://pastebin.com/DVSt4mmS</a><br></div>
<div>* kml: <a href="https://pastebin.com/LYkD4ZDL">https://pastebin.com/LYkD4ZDL</a><br></div>
<div>* Result: <a href="https://user-images.githubusercontent.com/5209757/33969313-f7029096-e042-11e7-8621-e8235f0bd5ce.png">https://user-images.<wbr>githubusercontent.com/5209757/<wbr>33969313-f7029096-e042-11e7-<wbr>8621-e8235f0bd5ce.png</a><br></div>
<div><span></span><br></div>
<div><span></span><br></div>
<div><span>Thanks!</span><br></div>
<div><span></span><br></div>
<div><span>My best regards,</span><br></div>
<div><span>Ivan</span><br></div>
<div><span></span><br></div>
</div>
</div>
</div>
</div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>mapserver-users mailing list<br></div>
<div><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br></div>
<div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div>
</blockquote><div><br></div>
</body>
</html>