planetfederal / wps-gui

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

Issue with namespace for coverages #208

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:Contour</ows:Identifier><ows:Title>Contour</ows:Title><ows:Abstract>Computes contour lines at specified intervals or levels for the values in a raster.</ows:Abstract></wps:Process><wps:Status creationTime="2015-08-03T09:59:05.403Z"><wps:ProcessFailed><ows:ExceptionReport version="1.1.0"><ows:Exception exceptionCode="NoApplicableCode"><ows:ExceptionText>Failed to retrieve value for input data
No such coverage: dem_large</ows:ExceptionText></ows:Exception></ows:ExceptionReport></wps:ProcessFailed></wps:Status></wps:ExecuteResponse>

Seems the prefix is not used in the request, the namespace is defined correctly though.

<p0:Execute
  xmlns:p0="http://www.opengis.net/wps/1.0.0"
  xmlns:foo="http://foo"
  xmlns:GWF="http://GWF"
  xmlns:wpsgui="http://wpsgui"
  xmlns:Boundless="www.boundlessgeo.com" service="WPS" version="1.0.0">
  <p1:Identifier
    xmlns:p1="http://www.opengis.net/ows/1.1">ras:Contour
  </p1:Identifier>
  <p0:DataInputs>
    <p0:Input>
      <p1:Identifier
        xmlns:p1="http://www.opengis.net/ows/1.1">data
      </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">dem_large
            </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>-180.01666666666665 -89.98333333331534</p1:LowerCorner>
                <p1:UpperCorner>179.98333333329737 90.01666666666667</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">levels
      </p1:Identifier>
      <p0:Data>
        <p0:LiteralData/>
      </p0:Data>
    </p0:Input>
    <p0:Input>
      <p1:Identifier
        xmlns:p1="http://www.opengis.net/ows/1.1">interval
      </p1:Identifier>
      <p0:Data>
        <p0:LiteralData>100</p0:LiteralData>
      </p0:Data>
    </p0:Input>
    <p0:Input>
      <p1:Identifier
        xmlns:p1="http://www.opengis.net/ows/1.1">simplify
      </p1:Identifier>
      <p0:Data>
        <p0:LiteralData>true</p0:LiteralData>
      </p0:Data>
    </p0:Input>
  </p0:DataInputs>
  <p0:ResponseForm>
    <p0:RawDataOutput mimeType="text/xml; subtype=wfs-collection/1.1">
      <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

Hmm but in the WCS GetCapabilities response the workspace is not even broadcasted:

<wcs:Identifier>dem_large</wcs:Identifier>
bartvde commented 9 years ago

It seems it is advertised in WCS 1.0.0 GetCapabilities though, but this version doesn't talk well to JSONIX

jodygarnett commented 9 years ago

Found related GeoServer issue here: https://osgeo-org.atlassian.net/browse/GEOS-7039

Solution appears to be to include the workspace name in the GetCapabilities document (making it consistent with DescribeCoverage).