Geoserver WPS 时间和边界框过滤

Geoserver WPS Time and Bounding Box Filtering

我想创建一个带有时间和边界框过滤的 wps 执行。但是 Geoserver returns“缺少参数 cropShape”。我怎么解决这个问题?感谢您的 help.In Below WPS 请求正文。 对于请求“http://serverName:port/geoserver/wps?service=WPS”

<?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>gs:CropCoverage</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>it.geosolutions:35SNB_TCL</ows:Identifier>
            <wcs:DomainSubset>
              <ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#32635">
                <ows:LowerCorner>525451.12 4150325.37</ows:LowerCorner>
                <ows:UpperCorner>529330.75 4153680.93</ows:UpperCorner>
              </ows:BoundingBox>
            </wcs:DomainSubset>
            <wcs:DimensionSlice>
            <wcs:Dimension>time</wcs:Dimension>
            <wcs:SlicePoint>2020-06-11T00:00:00.000‌​Z</wcs:SlicePoint>
            </wcs:DimensionSlice>
            <wcs:Output format="image/tiff"/>
          </wcs:GetCoverage>
        </wps:Body>
      </wps:Reference>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput mimeType="image/tiff">
      <ows:Identifier>result</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>

快速检查 DescribeProcess 响应表明该过程需要两个输入:

<Input maxOccurs="1" minOccurs="1">
    <ows:Identifier>coverage</ows:Identifier>
    <ows:Title>coverage</ows:Title>
    <ows:Abstract>Input raster</ows:Abstract>
    <ComplexData>
       ...

<Input maxOccurs="1" minOccurs="1">
    <ows:Identifier>cropShape</ows:Identifier>
    <ows:Title>cropShape</ows:Title>
    <ows:Abstract>Geometry used to crop the raster</ows:Abstract>
    <ComplexData>
      ...

但是,您只提供了一个输入,因此 GeoServer 指出第二个 (cropShape) 是必需的,而您没有提供。您需要一个多边形来指定要裁剪到的形状。

如果您只想从 WCS 中提取“立方体”,那么您根本不需要 WPS。