Hi,
Please excuse me as I am cross processing this with Stackoverflow. I’m new to GeoServer and am not sure where the best place to ask questions is.
I am setting up a GeoServer instance to host our geospatial data. One of the things I want to do is serve KML layers to display in GoogleEarth. GeoServer has two ways of doing this:
1. As part of a Web Map Service (WMS) where the polygons are turned to images or
2. As part of a WFS service where polygons are given as elements within the KML file.
I want to serve vector data as part of a WFS service so that people can interact with them.
I can do this with a URL like this:
http://****.com/geoserver/wfs?request=GetFeature&typeName=RBGE:Benmore_Beds&outputFormat=kml
but the resulting KML file has no styling in it so the polygons are represented as white blocks in GoogleEarth.
I can style the image outputs from my GeoServer using SLD - there is documentation on this but it only appears to effects KML image output (WMS) not KML vector output (WFS).
I have two questions:
1. Should the SLD definitions be translated into style markup in the WFS KML output? i.e. am I being dumb and missing some configuration setting somewhere
2. If it isn't possible to get GeoServer to insert the SLD definitions what is the best way to inject style into the KML file on route to Google Earth? I could write some kind of filter that used XSLT but that seems like hard work when other people must face the same problem.
I’d be most grateful for any help.
Many thanks,
Roger
-------------------------------------------------------------
Roger Hyam
Digital Information & Technology
Development Officer
r.hyam@anonymised.com<mailto:r.hyam@anonymised.com>
-------------------------------------------------------------
Royal Botanic Garden Edinburgh
20A Inverleith Row, Edinburgh, EH3 5LR, UK
Mobile: +44 759 060 8016
Fax: +44 131 248 2901
http://www.rbge.org.uk/
-------------------------------------------------------------
--
The Royal Botanic Garden Edinburgh is a charity registered in Scotland (No SC007983)