Hello!
I’m having trouble with the ras:Jiffle process. The script is very simple,
it’s just the sum of two bands; the thing is, I’m getting the same result
whether I use the 3rd or 4th band (and the process is actually using the
3rd band’s values).
Has anyone encountered this problem? Or successfully used this process with
bands other than the first three?
This is a sample request I’m using:
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0"
service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="
http://www.opengis.net/wps/1.0.0"; xmlns:wfs="http://www.opengis.net/wfs";
xmlns:wps="http://www.opengis.net/wps/1.0.0"; xmlns:ows="
http://www.opengis.net/ows/1.1"; xmlns:gml="http://www.opengis.net/gml";
xmlns:ogc="http://www.opengis.net/ogc"; xmlns:wcs="
http://www.opengis.net/wcs/1.1.1"; xmlns:xlink="http://www.w3.org/1999/xlink";
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">;
<ows:Identifier>ras:Jiffle</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>coverage</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs";
method="POST">
<wps:Body>
<wcs:GetCoverage service="WCS" version="1.1.1">
<ows:Identifier>geonode:sentinel_prueba_multibanda</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="
http://www.opengis.net/gml/srs/epsg.xml#32720">;
<ows:LowerCorner>688479.9999999994
5974250.0</ows:LowerCorner>
<ows:UpperCorner>691249.9999999994
5976700.0</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>script</ows:Identifier>
<wps:Data>
<wps:LiteralData>b1 = src[0]; b2 = src[2]; dest = b1 +
b2;</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
Thank you!
|