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-boun...@lists.osgeo.org> käyttäjän 
puolestaIvan Ogasawara <ivan.ogasaw...@gmail.com>
Lähetetty: 16. joulukuuta 2017 1:06
Vastaanottaja: Stephen Woodbridge
Kopio: mapserver-users@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.ogasaw...@gmail.com<mailto:ivan.ogasaw...@gmail.com>>:
Hi Stephen,

2017-12-14 15:44 GMT-04:00 Stephen Woodbridge 
<wood...@swoodbridge.com<mailto:wood...@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



_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to