[Geoserver-users] [rel] Script to convert WMS GetCapabilities to a KML file

Hi List,

Semi off-topic, but I’ve created a fairly simple python script which parses a WMS GetCapabilities and turns it into a KML file containing Network Links to all of the layers.

This is useful for allowing super-easy access to all of your WMS layers in Google Earth.

In the spirit of open source I figured I’d share it as it seems like the sort of thing that might be useful to others. Accessible here:
http://pastebin.com/bwxYpdvp

Note that it’s only been tested with GeoServer 2.4.1, and WMS 1.3.0. But it should maybe work with other versions too. Maybe.

Feedback welcome.

Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

Thanks, Jonathan.

Works well.

Cheers,
David

···

On Fri, Nov 8, 2013 at 5:07 AM, Jonathan Moules <jonathanmoules@anonymised.com> wrote:

Hi List,

Semi off-topic, but I’ve created a fairly simple python script which parses a WMS GetCapabilities and turns it into a KML file containing Network Links to all of the layers.

This is useful for allowing super-easy access to all of your WMS layers in Google Earth.

In the spirit of open source I figured I’d share it as it seems like the sort of thing that might be useful to others. Accessible here:
http://pastebin.com/bwxYpdvp

Note that it’s only been tested with GeoServer 2.4.1, and WMS 1.3.0. But it should maybe work with other versions too. Maybe.

Feedback welcome.

Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users