Hi, I am trying to style a wms based on the transformation function found on http://docs.geoserver.org/stable/en/user/styling/sld-tipstricks/transformation-func.html with the GS build listed below. I end up with a nullpointerexception. If I replace the interpolate function with a simple <CssParameter name="fill">#FF0000</CssParameter>, everything works fine. Is it a restriction with using the function with a PointSymbolizer or am I missing something else. Please advise.
Thank you.
GS Build:
* Version2.6.0
* Git Revision6bd64f68b435fadcdc6656e82a76852e504b2c72
* Build Date26-Sep-2014 16:00
* GeoTools Version12.0 (rev 645963cd65a6f5c151722ce012f2a4a6d3b86a44)
* GeoWebCache Version1.6.0 (rev
1.6.x/8beca4056f2c4873adbf6758b2ab12f65cebf7a0)
ERROR:
Caused by: java.lang.NullPointerException
at
org.geotools.filter.function.InterpolateFunction.evaluate(InterpolateFunction.java:245)
at
org.geotools.renderer.style.SLDStyleFactory.evalToColor(SLDStyleFactory.java:1544)
at
org.geotools.renderer.style.SLDStyleFactory.getPaint(SLDStyleFactory.java:1029)
at
org.geotools.renderer.style.SLDStyleFactory.createMarkStyle(SLDStyleFactory.java:678)
at
org.geotools.renderer.style.SLDStyleFactory.createPointStyle(SLDStyleFactory.java:642)
at
org.geotools.renderer.style.SLDStyleFactory.createPointStyle(SLDStyleFactory.java:517)
at
org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:373)
at
org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:320)
at
org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:2612)
at
org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:2515)
at
org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2348)
at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:2053)
at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:814)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:489)
SLD used:
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld" xmlns:public="http://capdf.csiro.au/"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ows="http://www.opengis.net/ows"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>public:XXXX</Name>
<UserStyle>
<Title>default Title</Title>
<Abstract>default
abstract</Abstract>
<FeatureTypeStyle>
<Rule>
<Name>XXXX</Name>
<Title>XXXX</Title>
<Abstract>Light purple square boxes</Abstract>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter
name="fill">
<ogc:Function name="Interpolate">
<ogc:PropertyName>T</ogc:PropertyName>
<ogc:Literal>4</ogc:Literal>
<ogc:Literal>#fefeee</ogc:Literal>
<ogc:Literal>36</ogc:Literal>
<ogc:Literal>#ff0000</ogc:Literal>
<ogc:Literal>color</ogc:Literal>
</ogc:Function>
</CssParameter>
</Fill>
</Mark>
<Size>6</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
