[mapserver-users] mapserver with kml

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Sun Dec 17 23:46:43 PST 2017


Hi,


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.


-Jukka Rahkonen-

________________________________
Lähettäjä: mapserver-users <mapserver-users-bounces at lists.osgeo.org> käyttäjän puolestaIvan Ogasawara <ivan.ogasawara at gmail.com>
Lähetetty: 16. joulukuuta 2017 1:06
Vastaanottaja: Stephen Woodbridge
Kopio: mapserver-users at lists.osgeo.org
Aihe: Re: [mapserver-users] mapserver with kml

Dear all,

I think the problem is related to this:

https://github.com/mapserver/mapserver/issues/4938

because using this URL works fine:

http://172.17.0.2?map=/maps/dengue-Rio-de-Janeiro.map&mode=map&MAP_IMAGETYPE=KML&layers=RIO_DE_JANEIRO

I changed the image width/height ratio and works fine too!

thanks so much!

2017-12-14 18:00 GMT-04:00 Ivan Ogasawara <ivan.ogasawara at gmail.com<mailto:ivan.ogasawara at gmail.com>>:
Hi Stephen,

2017-12-14 15:44 GMT-04:00 Stephen Woodbridge <woodbri at swoodbridge.com<mailto:woodbri at swoodbridge.com>>:
The "+" char in the URL is interpreted as a space you have to ecapce this as %2B

You're right, thanks .. but there is the same issue ...


But you should be able to give the OUTPUTFORMAT block an NAME "kml" and give that the appropriate parameters like:

        EXTENSION "kml"
        MIMETYPE "application/vnd.google-earth.kml+xml"

and whatever other parameters are needed, then request the format "kml"

yes .. this is the kml outputformat that I am using:

OUTPUTFORMAT
      NAME "kml"
      DRIVER KML
      MIMETYPE "application/vnd.google-earth.kml+xml"
      IMAGEMODE RGBA
      EXTENSION "kml"
      FORMATOPTION 'ATTACHMENT=RIO_DE_JANEIRO.kml'
    END



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20171218/e2c1c090/attachment.htm>


More information about the MapServer-users mailing list