I use OpenLayers to POST a wps request to GeoServer, the data in request is 
like this:


<wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0"; version="1.0.0" 
service="WPS" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<ows:Identifier 
xmlns:ows="http://www.opengis.net/ows/1.1";>gs:PointStacker</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1";>data</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; method="POST">
<wps:Body>
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"; service="WFS" 
version="1.1.0" wfs:viewParams="USER_ID:1;ODATE=2018-03-31">
<wfs:Query typeName="ms:general_es" srsName="EPSG:900913">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc";>
<ogc:PropertyIsLike wildCard="*" singleChar="." escapeChar="!">
<ogc:PropertyName>SN</ogc:PropertyName>
<ogc:Literal>%65%</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier 
xmlns:ows="http://www.opengis.net/ows/1.1";>outputBBOX</ows:Identifier>
<wps:Data>
<ows:BoundingBox xmlns:ows="http://www.opengis.net/ows/1.1"; crs="EPSG:900913">
<ows:LowerCorner>[my lower corner]</ows:LowerCorner>
<ows:UpperCorner>[my upper corner]</ows:UpperCorner>
</ows:BoundingBox>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier 
xmlns:ows="http://www.opengis.net/ows/1.1";>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>30</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier 
xmlns:ows="http://www.opengis.net/ows/1.1";>outputWidth</ows:Identifier>
<wps:Data>
<wps:LiteralData>1000</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier 
xmlns:ows="http://www.opengis.net/ows/1.1";>outputHeight</ows:Identifier>
<wps:Data>
<wps:LiteralData>660</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier 
xmlns:ows="http://www.opengis.net/ows/1.1";>normalize</ows:Identifier>
<wps:Data>
<wps:LiteralData>1</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="application/json">
<ows:Identifier 
xmlns:ows="http://www.opengis.net/ows/1.1";>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>




GeoServer (both 2.5.1 and 2.8.3) throws exceptions while parsing the params:


Caused by: java.lang.RuntimeException: Unable to set property: viewParams for 
eobject: {http://www.opengis.net/wfs}GetFeatureType
at 
org.geotools.xml.AbstractComplexEMFBinding.setProperty(AbstractComplexEMFBinding.java:301)
at 
org.geotools.xml.AbstractComplexEMFBinding.setProperties(AbstractComplexEMFBinding.java:213)
at 
org.geotools.xml.AbstractComplexEMFBinding.parse(AbstractComplexEMFBinding.java:147)
at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:156)
... 108 more
Caused by: java.lang.ArrayStoreException: java.lang.String
at org.eclipse.emf.common.util.BasicEList.assign(BasicEList.java:124)
at org.eclipse.emf.common.util.BasicEList.addAllUnique(BasicEList.java:514)
at 
org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddAllUnique(NotifyingListImpl.java:506)
at 
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addAllUnique(NotifyingListImpl.java:478)
at 
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addAllUnique(NotifyingListImpl.java:406)
at org.eclipse.emf.common.util.AbstractEList.addAll(AbstractEList.java:374)
at org.geotools.xml.EMFUtils.add(EMFUtils.java:169)
at org.geotools.xml.EMFUtils.add(EMFUtils.java:144)
at 
org.geotools.xml.AbstractComplexEMFBinding.setProperty(AbstractComplexEMFBinding.java:234)
... 111 more


Any ideas?


Thanks for your  time.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to