[Geoserver-devel] [JIRA] (GEOS-9892) Raster algebra with 4th band (and up)

Luciano Castro created an issue

GeoServer / BugGEOS-9892

Raster algebra with 4th band (and up)

Issue Type:

BugBug

Affects Versions:

2.17.0, 2.18.1

Assignee:

Unassigned

Attachments:

sentinel_prueba_multibanda.tif

Components:

WPS

Created:

08/Feb/21 4:44 AM

Priority:

MediumMedium

Reporter:

Luciano Castro

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!

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100154-sha1:bb4caa6)

Atlassian logo