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:
cite:mylayer
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.(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