Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bartvde opened this issue Aug 6, 2015 · 1 comment
Open

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

bartvde opened this issue Aug 6, 2015 · 1 comment

Comments

@bartvde
Copy link
Contributor

bartvde commented Aug 6, 2015

<?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
Copy link
Contributor Author

bartvde commented Aug 6, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant