Hello, Roger.
Yes, you can style all the KML output.
Open up this link to data published by the Geological Survey of NSW
(Australia) ..
http://dwh.minerals.nsw.gov.au/CI/kml-gsnsw.php
When you zoom into a small area, the place marks for the point layers (eg.
Drill holes) are a variety of shapes, colours and borders.
The link creates the KML that generates many network links to Geoserver in
the left pane of Google Earth. You can look at the properties of each
network link to see the type of Geoserver URL that we have used. For
example, look at the drill holes layers. We use the 'kmscore' parameter so
that a .PNG file is sent when there are many points, but data is sent when
there are fewer points (and thus GE place marks).
Since you are new to Geoserver, I suggest you install the CSS Styling
module - this much easier than SLD. Read the CSS Styling part of the
Geoserver manual for instruction.
We also use FTL files to specify a PHP report to appear in the pop-up when
you click on the place mark. This can include photos and potentially
videos. Google 'KML and Geoserver' - you should find a couple of articles.
Regards,
David Collins
Senior Geoscientist
Geological Survey of NSW
On Sep 5, 2014 7:51 PM, "Roger Hyam" <[email protected]> wrote:
>
> 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
> [email protected]<mailto:[email protected]>
> -------------------------------------------------------------
> 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)
>
>
>
------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users