Hello, all.
I am trying to invoke the gs:ScaleCoverage WPS as a Transformation on a
coverage from within an SLD. This works with all of the inputs (xScale,
yScale, etc.) EXCEPT for interpolation. No matter what value I provide for
interpolation, I get an error:
Caused by: java.security.InvalidParameterException: Could not convert the
value BILINEAR into the expected type class javax.media.jai.Interpolation
for parameter interpolation
at
org.geotools.process.function.ProcessFunction.evaluateInputs(ProcessFunction.java:203)
at
org.geotools.process.function.ProcessFunction.evaluate(ProcessFunction.java:108)
at
org.geotools.renderer.lite.StreamingRenderer.applyRenderingTransformation(StreamingRenderer.java:2230)
at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:2015)
at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:829)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:491)
... 106 more
Even though BILINEAR is stated as an acceptable value for this parameter.
The excerpt from my SLD is below:
<Transformation>
<ogc:Function name="gs:ScaleCoverage">
<ogc:Function name="parameter">
<ogc:Literal>coverage</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>xScale</ogc:Literal>
<ogc:Literal>3</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>yScale</ogc:Literal>
<ogc:Literal>3</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>xTranslate</ogc:Literal>
<ogc:Literal>0</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>yTranslate</ogc:Literal>
<ogc:Literal>0</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>interpolation</ogc:Literal>
<ogc:Literal>BILINEAR</ogc:Literal>
</ogc:Function>
</ogc:Function>
</Transformation>
Any help and direction is appreciated !
Thanks,
Mike Grogan
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users