planetfederal / wps-gui

Graphical User Interface (Model Builder) for OGC:WPS (Web Processing Services)
http://boundlessgeo.com
Apache License 2.0
26 stars 15 forks source link

cropping with a raster not in EPSG:4326 does not work #213

Open bartvde opened 9 years ago

bartvde commented 9 years ago
<?xml version="1.0" encoding="UTF-8"?><wps:ExecuteResponse xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en" service="WPS" serviceInstance="http://localhost:8080/geoserver/ows?" version="1.0.0"><wps:Process wps:processVersion="1.0.0"><ows:Identifier>ras:CropCoverage</ows:Identifier><ows:Title>Crop Coverage</ows:Title><ows:Abstract>Returns the portion of a raster bounded by a given geometry.</ows:Abstract></wps:Process><wps:Status creationTime="2015-08-06T18:59:12.767Z"><wps:ProcessFailed><ows:ExceptionReport version="1.1.0"><ows:Exception exceptionCode="NoApplicableCode"><ows:ExceptionText>Process failed during execution
org.geotools.coverage.processing.CannotCropException: An error occurred while cropping.
An error occurred while cropping.</ows:ExceptionText></ows:Exception></ows:ExceptionReport></wps:ProcessFailed></wps:Status></wps:ExecuteResponse>

Request:

<p0:Execute xmlns:p0="http://www.opengis.net/wps/1.0.0" xmlns:sf="http://foo" service="WPS"
    version="1.0.0">
    <p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">ras:CropCoverage</p1:Identifier>
    <p0:DataInputs>
        <p0:Input>
            <p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">coverage</p1:Identifier>
            <p0:Reference p3:href="http://geoserver/wcs" xmlns:p3="http://www.w3.org/1999/xlink"
                method="POST" mimeType="image/tiff">
                <p0:Body>
                    <p2:GetCoverage xmlns:p2="http://www.opengis.net/wcs/1.1.1" service="WCS"
                        version="1.1.1">
                        <p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1"
                            >new:dem25</p1:Identifier>
                        <p2:DomainSubset>
                            <p1:BoundingBox xmlns:p1="http://www.opengis.net/ows/1.1"
                                crs="http://www.opengis.net/gml/srs/epsg.xml#4326">
                                <p1:LowerCorner>-5.791251011711205
                                    40.20121580020936</p1:LowerCorner>
                                <p1:UpperCorner>-5.611115121069253 40.2975804193309</p1:UpperCorner>
                            </p1:BoundingBox>
                        </p2:DomainSubset>
                        <p2:Output format="image/tiff"/>
                    </p2:GetCoverage>
                </p0:Body>
            </p0:Reference>
        </p0:Input>
        <p0:Input>
            <p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">cropShape</p1:Identifier>
            <p0:Data>
                <p0:ComplexData mimeType="application/wkt">POLYGON((-5.743787274382783
                    40.254891273832634,-5.754086956999971 40.230172035551384,-5.732800946257783
                    40.213692543363884,-5.687482342742158 40.22879874453576,-5.699155316374971
                    40.26999747500451,-5.743787274382783 40.254891273832634))</p0:ComplexData>
            </p0:Data>
        </p0:Input>
    </p0:DataInputs>
    <p0:ResponseForm>
        <p0:RawDataOutput>
            <p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">result</p1:Identifier>
        </p0:RawDataOutput>
    </p0:ResponseForm>
</p0:Execute>
bartvde commented 9 years ago

Maybe because we send the cropShape as WKT and not as GML which can take an SRS