Hi everyone,

I'm trying to make a WPS RasterZonalStatistics request from the WPS Request 
builder but I'm getting the following error: "org.geoserver.wps.WPSException: 
Unrecognized request type {}". I think I've passed all the parameters correctly 
but perhaps I missed something. I also asked in the users list but I didn't  
get any answer so perhaps is something related to the extension itself.

My request:

<?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:RasterZonalStatistics</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>data</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>TELEDETEKZIOA:LC82010302016143LGN00_20160522_MNDW</ows:Identifier>
            <wcs:DomainSubset>
              <ows:BoundingBox 
crs="http://www.opengis.net/gml/srs/epsg.xml#25830";>
                <ows:LowerCorner>446500.0 4685000.0</ows:LowerCorner>
                <ows:UpperCorner>620000.0 4820000.0</ows:UpperCorner>
              </ows:BoundingBox>
            </wcs:DomainSubset>
            <wcs:Output format="image/tiff"/>
          </wcs:GetCoverage>
        </wps:Body>
      </wps:Reference>
    </wps:Input>
    <wps:Input>
      <ows:Identifier>zones</ows:Identifier>
      <wps:Data>
        <wps:ComplexData mimeType="application/json"><![CDATA[{
  "type": "Polygon",
  "coordinates": [
    [
      [
        -290761.67828254256,
        5311150.473367187
      ],
      [
        -291879.5698212133,
        5310023.027199981
      ],
      [
        -290885.888453506,
        5309421.085602235
      ],
      [
        -289978.19874261954,
        5309554.850401734
      ],
      [
        -289911.31634287,
        5309908.371657552
      ],
      [
        -290322.16536990285,
        5310615.41416919
      ],
      [
        -290627.91348304355,
        5311179.137252794
      ],
      [
        -290761.67828254256,
        5311150.473367187
      ]
    ]
  ]
}]]></wps:ComplexData>
      </wps:Data>
    </wps:Input>
    <wps:Input>
      <ows:Identifier>classification</ows:Identifier>
      <wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs"; 
method="POST">
        <wps:Body/>
      </wps:Reference>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput mimeType="text/xml; subtype=wfs-collection/1.0">
      <ows:Identifier>statistics</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>

Server Response:

<?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://geo.hazi.eus/ows?"; version="1.0.0"><wps:Process 
wps:processVersion="1.0.0"><ows:Identifier>ras:RasterZonalStatistics</ows:Identifier><ows:Title>Raster
 Zonal Statistics</ows:Title><ows:Abstract>Computes statistics for the 
distribution of a certain quantity in a set of polygonal 
zones.</ows:Abstract></wps:Process><wps:Status 
creationTime="2017-06-12T07:11:20.359Z"><wps:ProcessFailed><ows:ExceptionReport 
version="1.1.0"><ows:Exception 
exceptionCode="NoApplicableCode"><ows:ExceptionText>Unrecognized request type 
{}</ows:ExceptionText></ows:Exception></ows:ExceptionReport></wps:ProcessFailed></wps:Status></wps:ExecuteResponse>


GEOSERVER LOG

2017-06-12 09:06:58,140 TRACE [org.geoserver.ows.OWSHandlerMapping] - No 
handler mapping found for [/wps]
2017-06-12 09:06:58,140 DEBUG [org.geoserver.ows.OWSHandlerMapping] - Mapping 
[/wps] to HandlerExecutionChain with handler 
[org.geoserver.ows.Dispatcher@46d0056f] and 1 interceptor
2017-06-12 09:06:58,140 DEBUG [org.vfny.geoserver.requests] - First 4 bytes of 
XML doc are : 3C ('<') 3F ('?') 78 ('x') 6D ('m')
2017-06-12 09:06:58,140 DEBUG [org.vfny.geoserver.requests] - Charset detection 
phase 1. Inferred encoding: UTF-8
2017-06-12 09:06:58,140 DEBUG [org.vfny.geoserver.requests] - Charset detection 
phase 2. Charset in XML declaration is `UTF-8`.
2017-06-12 09:06:58,140 DEBUG [org.vfny.geoserver.requests] - Trying to create 
reader basing on existing charset information: `UTF-8`.
2017-06-12 09:06:58,140 DEBUG [org.geoserver.ows] - Raw XML request starts 
with: <?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:RasterZonalStatistics</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>data</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>TELEDETEKZIOA:LC82000302013239LGN00_20130827_NDWI</ows:Identifier>
            <wcs:DomainSubset>
   
2017-06-12 09:06:58,140 INFO [org.geoserver.wps] -
Request: getServiceInfo
2017-06-12 09:06:58,202 DEBUG [org.geoserver.wps] - Saving status 
ExecutionStatus [processName=ras:RasterZonalStatistics, 
executionId=373cce42-51a8-4ec2-a0a8-25efa3416a34, asynchronous=false, 
phase=FAILED, progress=0.0, userName=anonymous, creationTime=Mon Jun 12 
09:06:58 CEST 2017, completionTime=Mon Jun 12 09:06:58 CEST 2017, 
lastUpdated=Mon Jun 12 09:06:58 CEST 2017, task=null, 
exception=org.geoserver.wps.WPSException: Unrecognized request type {}, 
nodeId=HFGeoServer01]
2017-06-12 09:06:58,202 ERROR [org.geoserver.wps.executor] - Process execution 
failed
org.geoserver.wps.WPSException: Unrecognized request type {}
        at 
org.geoserver.wps.executor.InternalWCSInputProvider.getValueInternal(InternalWCSInputProvider.java:73)
        at 
org.geoserver.wps.executor.AbstractInputProvider.getValue(AbstractInputProvider.java:97)
        at 
org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:86)
        at org.geoserver.wps.executor.LazyInputMap.get(LazyInputMap.java:50)
        at 
org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.buildProcessArguments(AnnotationDrivenProcessFactory.java:659)
        at 
org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:544)
        at 
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201)
        at 
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
2017-06-12 09:06:58,202 DEBUG [org.geoserver.wps] - Saving status 
ExecutionStatus [processName=ras:RasterZonalStatistics, 
executionId=373cce42-51a8-4ec2-a0a8-25efa3416a34, asynchronous=false, 
phase=FAILED, progress=0.0, userName=anonymous, creationTime=Mon Jun 12 
09:06:58 CEST 2017, completionTime=Mon Jun 12 09:06:58 CEST 2017, 
lastUpdated=Mon Jun 12 09:06:58 CEST 2017, task=null, 
exception=org.geoserver.wps.WPSException: Unrecognized request type {}, 
nodeId=HFGeoServer01]
2017-06-12 09:06:58,202 DEBUG [org.geoserver.wps.resource] - Associating 
process with execution id: 648988cf-c925-40a1-bc03-b66c9ad3cb33
2017-06-12 09:06:58,202 DEBUG [org.geoserver.wps] - Saving status 
ExecutionStatus [processName=ras:RasterZonalStatistics, 
executionId=373cce42-51a8-4ec2-a0a8-25efa3416a34, asynchronous=false, 
phase=FAILED, progress=0.0, userName=anonymous, creationTime=Mon Jun 12 
09:06:58 CEST 2017, completionTime=Mon Jun 12 09:06:58 CEST 2017, 
lastUpdated=Mon Jun 12 09:06:58 CEST 2017, task=null, 
exception=org.geoserver.wps.WPSException: Unrecognized request type {}, 
nodeId=HFGeoServer01]
2017-06-12 09:06:58,202 INFO [org.geoserver.wps] -
Request: execute
    service = WPS
    version = 1.0.0
    baseUrl = http://geo.hazi.eus:80/
    identifier:
        value = ras:RasterZonalStatistics
    dataInputs:
        input[0]:
            identifier = net.opengis.ows11.impl.CodeTypeImpl@2e1a201a (value: 
data, codeSpace: null)
            reference = net.opengis.wps10.impl.InputReferenceTypeImpl@3531a29b 
(body: net.opengis.wcs11.impl.GetCoverageTypeImpl@4daa8965 (service: WCS, 
version: 1.1.1, baseUrl: null, extendedProperties: {}), encoding: null, href: 
http://geoserver/wcs, method: POST, mimeType: image/tiff, schema: null)input[0]:
            identifier = net.opengis.ows11.impl.CodeTypeImpl@77226db8 (value: 
zones, codeSpace: null)
            data = net.opengis.wps10.impl.DataTypeImpl@75518822input[0]:
            identifier = net.opengis.ows11.impl.CodeTypeImpl@3bc0ac5a (value: 
classification, codeSpace: null)
            reference = net.opengis.wps10.impl.InputReferenceTypeImpl@6673675b 
(body: {}, encoding: null, href: http://geoserver/wcs, method: POST, mimeType: 
image/tiff, schema: null)
    responseForm:
        rawDataOutput:
            identifier = net.opengis.ows11.impl.CodeTypeImpl@2286bbe9 (value: 
statistics, codeSpace: null)
            mimeType = text/xml; subtype=wfs-collection/1.0
2017-06-12 09:06:58,202 DEBUG [org.geoserver.wps] - Saving status 
ExecutionStatus [processName=ras:RasterZonalStatistics, 
executionId=648988cf-c925-40a1-bc03-b66c9ad3cb33, asynchronous=false, 
phase=QUEUED, progress=0.0, userName=anonymous, creationTime=Mon Jun 12 
09:06:58 CEST 2017, completionTime=null, lastUpdated=Mon Jun 12 09:06:58 CEST 
2017, task=null, exception=null, nodeId=HFGeoServer01]
2017-06-12 09:06:58,202 DEBUG [org.geoserver.wps] - Saving status 
ExecutionStatus [processName=ras:RasterZonalStatistics, 
executionId=648988cf-c925-40a1-bc03-b66c9ad3cb33, asynchronous=false, 
phase=RUNNING, progress=0.0, userName=anonymous, creationTime=Mon Jun 12 
09:06:58 CEST 2017, completionTime=null, lastUpdated=Mon Jun 12 09:06:58 CEST 
2017, task=null, exception=null, nodeId=HFGeoServer01]
2017-06-12 09:06:58,249 DEBUG 
[org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1] - 
SecurityContextHolder now cleared, as request processing completed
2017-06-12 09:06:58,390 DEBUG [org.geoserver.wps] - Saving status 
ExecutionStatus [processName=ras:RasterZonalStatistics, 
executionId=648988cf-c925-40a1-bc03-b66c9ad3cb33, asynchronous=false, 
phase=FAILED, progress=0.0, userName=anonymous, creationTime=Mon Jun 12 
09:06:58 CEST 2017, completionTime=Mon Jun 12 09:06:58 CEST 2017, 
lastUpdated=Mon Jun 12 09:06:58 CEST 2017, task=null, 
exception=org.geoserver.wps.WPSException: Unrecognized request type {}, 
nodeId=HFGeoServer01]
2017-06-12 09:06:58,390 ERROR [org.geoserver.wps.executor] - Process execution 
failed
org.geoserver.wps.WPSException: Unrecognized request type {}
        at 
org.geoserver.wps.executor.InternalWCSInputProvider.getValueInternal(InternalWCSInputProvider.java:73)
        at 
org.geoserver.wps.executor.AbstractInputProvider.getValue(AbstractInputProvider.java:97)
        at 
org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:86)
        at org.geoserver.wps.executor.LazyInputMap.get(LazyInputMap.java:50)
        at 
org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.buildProcessArguments(AnnotationDrivenProcessFactory.java:659)
        at 
org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:544)
        at 
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201)
        at 
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
2017-06-12 09:06:58,390 DEBUG [org.geoserver.wps] - Saving status 
ExecutionStatus [processName=ras:RasterZonalStatistics, 
executionId=648988cf-c925-40a1-bc03-b66c9ad3cb33, asynchronous=false, 
phase=FAILED, progress=0.0, userName=anonymous, creationTime=Mon Jun 12 
09:06:58 CEST 2017, completionTime=Mon Jun 12 09:06:58 CEST 2017, 
lastUpdated=Mon Jun 12 09:06:58 CEST 2017, task=null, 
exception=org.geoserver.wps.WPSException: Unrecognized request type {}, 
nodeId=HFGeoServer01]
2017-06-12 09:06:58,390 DEBUG [org.geoserver.wps] - Saving status 
ExecutionStatus [processName=ras:RasterZonalStatistics, 
executionId=648988cf-c925-40a1-bc03-b66c9ad3cb33, asynchronous=false, 
phase=FAILED, progress=0.0, userName=anonymous, creationTime=Mon Jun 12 
09:06:58 CEST 2017, completionTime=Mon Jun 12 09:06:58 CEST 2017, 
lastUpdated=Mon Jun 12 09:06:58 CEST 2017, task=null, 
exception=org.geoserver.wps.WPSException: Unrecognized request type {}, 
nodeId=HFGeoServer01]


Any help is much apreciated.

Thanks in advance,

Regards,

Agur bero bat,


David Alda Fernández de Lezea
Área de Sistemas de Información Geográfica, Planificación Territorial y 
Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren 
Arloa.
[email protected] | www.hazi.eus
T 945 003 240 - M 627 923 170 - F 945 003 290 
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba
 
*********************  LEGE OHARRA   *******************   AVISOLEGAL   
*******************   DISCLAIMER   *****************************
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua 
dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido 
legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo 
ni conservarlo.
This message is personal and confidential, unauthorised use is legally 
prohibited. If you are not the intended recipient, delete it without resending 
or backing it.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to