[Geoserver-users] How to crop coverage which is the result of gs:BarnesSurface with WPS chain in sld? It's throw a Error

Hi all:
I would like to perform a gs:CropCoverage of the Raster Layer which is the result of gs:BarnesSurface
The SLD file is below:

<?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:ogc="http://www.opengis.net/ogc"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <NamedLayer>
        <Name>CropCoverage</Name>
        <UserStyle>
            <Title>Crop Coverage</Title>
            <FeatureTypeStyle>
                <Transformation>
                    <ogc:Function name="gs:CropCoverage">
                        <!-- crop coverage -->
                        <ogc:Function name="parameter">
                            <ogc:Literal>coverage</ogc:Literal>

                            <ogc:Function name="gs:BarnesSurface">

                                <ogc:Function name="parameter">
                                    <ogc:Literal>data</ogc:Literal>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>valueAttr</ogc:Literal>
                                    <ogc:Literal>o3_8h</ogc:Literal>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>scale</ogc:Literal>
                                    <ogc:Literal>300000</ogc:Literal>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>convergence</ogc:Literal>
                                    <ogc:Literal>0.2</ogc:Literal>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>passes</ogc:Literal>
                                    <ogc:Literal>3</ogc:Literal>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>minObservations</ogc:Literal>
                                    <ogc:Literal>1</ogc:Literal>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>maxObservationDistance</ogc:Literal>
                                    <ogc:Literal>300000</ogc:Literal>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>pixelsPerCell</ogc:Literal>
                                    <ogc:Literal>10</ogc:Literal>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>queryBuffer</ogc:Literal>
                                    <ogc:Literal>1100000</ogc:Literal>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>outputBBOX</ogc:Literal>
                                    <ogc:Function name="env">
                                        <ogc:Literal>wms_bbox</ogc:Literal>
                                    </ogc:Function>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>outputWidth</ogc:Literal>
                                    <ogc:Function name="env">
                                        <ogc:Literal>wms_width</ogc:Literal>
                                    </ogc:Function>
                                </ogc:Function>

                                <ogc:Function name="parameter">
                                    <ogc:Literal>outputHeight</ogc:Literal>
                                    <ogc:Function name="env">
                                        <ogc:Literal>wms_height</ogc:Literal>
                                    </ogc:Function>
                                </ogc:Function>

                            </ogc:Function>

                        </ogc:Function>
                        <ogc:Function name="parameter">
                            <ogc:Literal>cropShape</ogc:Literal>
                            <ogc:Function name="env">
                                <ogc:Literal>shape</ogc:Literal>
                                <ogc:Literal>
                                    POLYGON((12679220.5449551 4733685.69206447,12898591.968062 4713152.82010571,13058134.8212306 4439899.46114607,13030214.821926 4052340.79528089,12735060.5435642 4028261.06778929,12483780.5498236 4076471.69742768,12180649.1288033 4330580.49744829,12264409.1267168 4525151.37667656,12264409.1267168 4525151.37667656,12364123.4099472 4728548.57087371,12364123.4099472 4728548.57087371,12679220.5449551 4733685.69206447))
                                  </ogc:Literal>
                            </ogc:Function>
                        </ogc:Function>
                    </ogc:Function>
                </Transformation>
                <Rule>
                    <Name>rule1</Name>
                    <RasterSymbolizer></RasterSymbolizer>
                </Rule>
            </FeatureTypeStyle>
        </UserStyle>
    </NamedLayer>
</StyledLayerDescriptor>

| <br><br><br><br><br>I would like to perform a gs:CropCoverage of the Raster Layer which is the result of gs:BarnesSurface<br><br><br><br>[<img src="http://i.stack.imgur.com/77y1z.png" style="margin: 0px; padding: 0px; border-width: 0px; max-width: 630px;">](http://i.stack.imgur.com/77y1z.png)<br><br><br><br>The SLD file is below:<br><br><br><br>```<br><?xml version="1.0" encoding="ISO-8859-1"?><br><StyledLayerDescriptor version="1.0.0"<br>     xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"<br>     xmlns="http://www.opengis.net/sld"<br>     xmlns:ogc="http://www.opengis.net/ogc"<br>     xmlns:xlink="http://www.w3.org/1999/xlink"<br>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br>    <NamedLayer><br>        <Name>CropCoverage</Name><br>        <UserStyle><br>            <Title>Crop Coverage</Title><br>            <FeatureTypeStyle><br>                <Transformation><br>                    <ogc:Function name="gs:CropCoverage"><br>                        <!-- crop coverage --><br>                        <ogc:Function name="parameter"><br>                            <ogc:Literal>coverage</ogc:Literal><br><br>                            <ogc:Function name="gs:BarnesSurface"><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>data</ogc:Literal><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>valueAttr</ogc:Literal><br>                                    <ogc:Literal>o3_8h</ogc:Literal><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>scale</ogc:Literal><br>                                    <ogc:Literal>300000</ogc:Literal><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>convergence</ogc:Literal><br>                                    <ogc:Literal>0.2</ogc:Literal><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>passes</ogc:Literal><br>                                    <ogc:Literal>3</ogc:Literal><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>minObservations</ogc:Literal><br>                                    <ogc:Literal>1</ogc:Literal><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>maxObservationDistance</ogc:Literal><br>                                    <ogc:Literal>300000</ogc:Literal><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>pixelsPerCell</ogc:Literal><br>                                    <ogc:Literal>10</ogc:Literal><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>queryBuffer</ogc:Literal><br>                                    <ogc:Literal>1100000</ogc:Literal><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>outputBBOX</ogc:Literal><br>                                    <ogc:Function name="env"><br>                                        <ogc:Literal>wms_bbox</ogc:Literal><br>                                    </ogc:Function><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>outputWidth</ogc:Literal><br>                                    <ogc:Function name="env"><br>                                        <ogc:Literal>wms_width</ogc:Literal><br>                                    </ogc:Function><br>                                </ogc:Function><br><br>                                <ogc:Function name="parameter"><br>                                    <ogc:Literal>outputHeight</ogc:Literal><br>                                    <ogc:Function name="env"><br>                                        <ogc:Literal>wms_height</ogc:Literal><br>                                    </ogc:Function><br>                                </ogc:Function><br><br>                            </ogc:Function><br><br>                        </ogc:Function><br>                        <ogc:Function name="parameter"><br>                            <ogc:Literal>cropShape</ogc:Literal><br>                            <ogc:Function name="env"><br>                                <ogc:Literal>shape</ogc:Literal><br>                                <ogc:Literal><br>                                    POLYGON((12679220.5449551 4733685.69206447,12898591.968062 4713152.82010571,13058134.8212306 4439899.46114607,13030214.821926 4052340.79528089,12735060.5435642 4028261.06778929,12483780.5498236 4076471.69742768,12180649.1288033 4330580.49744829,12264409.1267168 4525151.37667656,12264409.1267168 4525151.37667656,12364123.4099472 4728548.57087371,12364123.4099472 4728548.57087371,12679220.5449551 4733685.69206447))<br>                                  </ogc:Literal><br>                            </ogc:Function><br>                        </ogc:Function><br>                    </ogc:Function><br>                </Transformation><br>                <Rule><br>                    <Name>rule1</Name><br>                    <RasterSymbolizer></RasterSymbolizer><br>                </Rule><br>            </FeatureTypeStyle><br>        </UserStyle><br>    </NamedLayer><br></StyledLayerDescriptor><br><br>```<br><br><br><br>The Error Info is below:<br><br><br><br>Error rendering coverage on the fast path java.lang.RuntimeException: Failed to evaluate the process function, error is: java.lang.RuntimeException: java.io.IOException Failed to evaluate the process function, error is: java.lang.RuntimeException: java.io.IOException java.lang.RuntimeException: java.io.IOException java.io.IOExceptionorg.postgresql.util.PSQLException: ERROR: parse error - invalid geometry 建议:"POLYGON ((- " <-- parse error at position 12 within geometry ERROR: parse error - invalid geometry 建议:"POLYGON ((- " <-- parse error at position 12 within geometry<br><br><br><br>Where Error??????<br><br><br><br> |
| - |