我都是。我有以下xml执行文件:
<?xml version="1.0" encoding="UTF-8"?>
-<wps:Execute xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="WPS" version="1.0.0">
<ows:Identifier>gs:HelloWPS</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>Hello!!</ows:Identifier>
<wps:Data>
<wps:LiteralData>world</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute> 名为Hello.xml的文件保存在桌面上。我也可以像管理员一样连接到geoserver上。我会使用curl命令来完成这个过程,比如: curl -H 'Content-type:xml‘-XPOST --data 'C:...\Desktop\Hello.xml’
结果如下所示:无法从http请求org.geoserver.platform.AdvancedDispatchFilter$AdvancedDispatchHttpRequest@6c7e7eb8确定地理服务器请求
有人能帮我吗?非常感谢
发布于 2015-04-24 22:51:22
我远不是最优秀的专家,但我能够使用以下命令调用geoserver wps进程:
curl -H“内容类型:文本/xml”-d@wpsreq.xml -X POST http://geoserver.local:8080/geoserver/wps
...so,注意我的调用中的区别:-Content-Type: X和POST之间的文本/xml -Space
...I对进程gs:HelloWPS一无所知。此进程似乎不在随geoserver/GDAL分发的进程中。我使用的是gs:GeoRectifyCoverage等。你可以在WPS命令生成器应用程序中看到可用进程的已安装列表。在geoserver中,单击"Demos",然后单击"WPS Request Builder",然后单击"Choose Process“下拉列表,查看可以调用的进程列表。
https://stackoverflow.com/questions/27859373
复制相似问题