[mapserver-users] KML output 6.4.2

Jeff McKenna jmckenna at gatewaygeomatics.com
Tue Oct 18 15:13:29 PDT 2016


I have been more successful with KML output through WFS, by setting an 
OUTPUTFORMAT block in your mapfile and then passing &outputformat=kml 
in your WFS request.  Is that an option for you??

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/





On 2016-10-18 5:45 PM, Moisan, Yves (EC) wrote:
> Hi All,
>
>
>
> Haven’t been here in a while …  I’m striving to find out how to either
> query MS or run a command to generate a KML document ready to be
> ingested by Google Earth.  I’ve seen the documentation mentioning
> “Output can then be generated using MapServer cgi (example mode=map) or
> through a WMS request.” [1] and I understand the capability has been
> there since 6.0, but I can’t get around to obtaining a KML document that
> has <NetworkLink> elements pointing to the GetMap requests of particular
> layers.  I do get KML documents (with FORMAT=kml), but they miss a
> <NetworkLink> element in the <Folder> element corresponding to a layer
> from which GE could fetch an image :
>
>
>
> <Folder>
>
>     <name>MyName</name>
>
>     <visibility>1</visibility>
>
>     <styleUrl>#LayerFolder_check</styleUrl>
>
>    <!-- NetworkLink> MISSING </NetworkLink -->
>
> </Folder>
>
>
>
> Examples or pointers anyone ?
>
>
>
> TIA,
>
>
>
> Yves
>
>
>
> [1] http://mapserver.org/output/kml_output.html
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>





More information about the MapServer-users mailing list