ctu-geoforall-lab / rain

http://rain.fsv.cvut.cz Apps and OGC OWS
GNU General Public License v2.0
0 stars 2 forks source link

soil-texture-hsg fails when more layers defined #26

Closed landam closed 2 years ago

landam commented 3 years ago
wget --post-file ows/wps/tests/request-soil-texture-hsg.xml "https://rain1.fsv.cvut.cz/services/wps?" 
--2021-10-15 13:39:29--  https://rain1.fsv.cvut.cz/services/wps?
Resolving rain1.fsv.cvut.cz (rain1.fsv.cvut.cz)... 147.32.140.150
Connecting to rain1.fsv.cvut.cz (rain1.fsv.cvut.cz)|147.32.140.150|:443... connected.
HTTP request sent, awaiting response... 400 BAD REQUE
...

PyWPS log says:

2021-10-15 11:41:02,675] [ERROR] file=/usr/local/lib/python3.6/dist-packages/pywps/exceptions.py line=45 module=exceptions function=__init__ Exception: code: 400, description: Input data not valid using mode 1, locator: 
NoneType: None

Probably related to https://github.com/ctu-geoforall-lab/rain/commit/eb21cdf4e14e3145810f3fea1c72e96d0d848575

Screenshot from 2021-10-15 13-38-12

landam commented 3 years ago
<?xml version="1.0" encoding="UTF-8"?>
<!-- PyWPS 4.2.8 -->
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" version="1.0.0">
  <ows:Exception exceptionCode="InvalidParameterValue" locator="" >
      <ows:ExceptionText>Input data not valid using mode 1</ows:ExceptionText>
  </ows:Exception>
landam commented 3 years ago

https://rain1.fsv.cvut.cz/services/wps?service=wps&request=describeprocess&version=2.0.0&identifier=soil-texture-hsg-issue26

landam commented 3 years ago

Update: testing process works (see sample: request-soil-texture-hsg.xml.zip)

wget -q --post-file request-soil-texture-hsg.xml https://rain1.fsv.cvut.cz/services/wps? -O response.xml
landam commented 3 years ago

QGIS plugin still fails:

2021-11-09 17:27:04,799] [ERROR] file=/usr/local/lib/python3.6/dist-packages/pywps/exceptions.py line=45 module=exceptions function=__init__ Exception: code: 400, description: Input data not valid using mode 1, locator: 
NoneType: None

Screenshot from 2021-11-09 18-20-59

landam commented 3 years ago

See related: https://github.com/OpenGeoLabs/qgis-wps-plugin/issues/37

landam commented 2 years ago
     <wps:Input>
       <ows:Identifier>layers</ows:Identifier>
       <wps:Data>
        <wps:LiteralData>sand</wps:LiteralData>
      </wps:Data>
    </wps:Input>
    <wps:Input>
      <ows:Identifier>layers</ows:Identifier>
      <wps:Data>
       <wps:LiteralData>silt</wps:LiteralData>
       </wps:Data>
     </wps:Input>