0

I have a layergroup with custom SLD's in Geoserver: Layer preview

All the symbology renders fine. If I try and add the KML as a network link into google earth using this URL I lose most of my SVG and Polygon symbology.

and just get Red Crosses for all the SVG layers

The svg files are in the styles folder in geoserver and I've also tried copying one of them to an accessible URL. The SLD for that layer now contains:

<PointSymbolizer>
        <Graphic>
          <ExternalGraphic>
            <OnlineResource xlink:type="simple" xlink:href="http://www.dassh.ac.uk/images/carpark.svg" />
            <Format>image/svg+xml</Format>
          </ExternalGraphic>
          <Size>
            <!--<ogc:Literal>12</ogc:Literal>-->
            12
          </Size>
        </Graphic>
      </PointSymbolizer>

And as before, displays fine in OpenLayers (within Geoserver) but not Google Earth.

Any help gratefully received.

Thanks

Dan

  • does Google Earth support SVG? try specifying a fall back mark in the SLD for clients that can't handle SVG – Ian Turton May 23 '14 at 7:53
  • Thanks, just tried swapping for a png and that works. How do you specify a fall back mark? It doesn't explain the polygon rendering though. – DanLear May 23 '14 at 8:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.