首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >curl for geoserver进程

curl for geoserver进程
EN

Stack Overflow用户
提问于 2015-01-09 19:17:43
回答 1查看 514关注 0票数 2

我都是。我有以下xml执行文件:

代码语言:javascript
复制
<?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确定地理服务器请求

有人能帮我吗?非常感谢

EN

回答 1

Stack Overflow用户

发布于 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“下拉列表,查看可以调用的进程列表。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27859373

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档