Interesting! >From the WMS spec: "Graphic element formats include Scalable Vector Graphics (SVG; MIME type “image/svg+xml”) or Web Computer Graphics Metafile (WebCGM; MIME type “image/cgm;Version=4;ProfileId=WebCGM”) formats" I wonder how many WMS clients would handle KML as a WMS. As it is XML then it would't be accessible from another domain in a web client. Ivan's problem looks to be a projection issue only.
Seth -- web:http://geographika.co.uk twitter: @geographika On Thu, Dec 14, 2017, at 10:42 AM, Rahkonen Jukka (MML) wrote: > Hi Seth, > > KML is considered as an image format and it should work with WMS and > with mode=map > http://mapserver.gis.umn.edu/fr/development/rfc/ms-rfc-58.html> > It seems that KML output has not been developed much since the initial > implementation.> > -Jukka Rahkonen- > > *Lähettäjä:* mapserver-users [mailto:mapserver-users- > boun...@lists.osgeo.org] *Puolesta *Seth G *Lähetetty:* 14. joulukuuta > 2017 10:03 *Vastaanottaja:* mapserver-users@lists.osgeo.org *Aihe:* > Re: [mapserver-users] mapserver with kml> > Hi, > > 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?> 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.> > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Thu, Dec 14, 2017, at 01:33 AM, Ivan Ogasawara wrote: >> >> Dear all, >> >> Anyone knows some tutorial to work with mapserver (wms) and kml? >> >> I am trying to do it .. but with no success. >> >> this is the local url used: >> >> 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>> >> >> for image/png works fine (tested with leaflet). >> >> Any tips? >> >> >> Files: >> * mapfiles: >> * https://pastebin.com/4EkahMZi >> * https://pastebin.com/DVSt4mmS >> * kml: https://pastebin.com/LYkD4ZDL >> * Result: >> >> https://user-images.githubusercontent.com/5209757/33969313-f7029096-e042-11e7-8621-e8235f0bd5ce.png>> >> >> >> Thanks! >> >> My best regards, >> Ivan >> >> _________________________________________________ >> mapserver-users mailing list >> mapserver-users@lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users