Hello all!
I should first start by saying I am not sure what I am trying to do is
possible. Although geoserver is pretty sweet and haven't found much that I
could not do :)
I am trying to use the KML reflector and attach a remote sld url in the
request. The sld in question has an ExternalGraphic, but I have also tried
with just a general color style and I get the same exception. The sld that
is generated looks like this:
<StyledLayerDescriptor
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>cite:mylayer</Name>
<UserStyle>
<Title>My Layer</Title>
<FeatureTypeStyle>
<Rule>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="
http://maps.google.com/mapfiles/kml/paddle/blu-circle.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Size>64</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
And the exception I get is:
15 Jul 15:50:10 ERROR [geoserver.ows] -
java.lang.NullPointerException
at
org.geoserver.kml.decorator.PlacemarkStyleDecoratorFactory$PlacemarkStyleDecorator.setLiveIconStyle(PlacemarkStyleDecoratorFactory.java:259)
at
org.geoserver.kml.decorator.PlacemarkStyleDecoratorFactory$PlacemarkStyleDecorator.setIconStyle(PlacemarkStyleDecoratorFactory.java:204)
at
org.geoserver.kml.decorator.PlacemarkStyleDecoratorFactory$PlacemarkStyleDecorator.decorate(PlacemarkStyleDecoratorFactory.java:102)
at
org.geoserver.kml.sequence.FeatureSequenceFactory$FeatureGenerator.next(FeatureSequenceFactory.java:121)
at
org.geoserver.kml.sequence.FeatureSequenceFactory$FeatureGenerator.next(FeatureSequenceFactory.java:80)
at
org.geoserver.kml.sequence.SequenceList$GeneratorIterator.<init>(SequenceList.java:29)
at org.geoserver.kml.sequence.SequenceList.iterator(SequenceList.java:63)
A couple things:
* The SLD works great when used in a simple WMS request with
format=image/png
* I was trying a more complex OnlineResource that had CQL, but moved to a
simple google icon that I know is available
So the question is, can I use an SLD to generate icons with the KML
reflector? Can the sld come from a remote server? If yes, any idea on
what I might be doing wrong?
Thanks,
Shaun
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users