[mapserver-users] mapserver with kml

Ivan Ogasawara ivan.ogasawara at gmail.com
Fri Dec 15 15:06:53 PST 2017


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>:

> Hi Stephen,
>
> 2017-12-14 15:44 GMT-04:00 Stephen Woodbridge <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/20171215/56aea3fc/attachment.htm>


More information about the MapServer-users mailing list