我正在尝试通过GeoNetwork3 mapView执行wps请求。工作流程是用户选择现有的要素集合,然后选择一个点。在此之后,请求将被执行。请求格式是xml,它是通过post提交的。不幸的是,execute响应是:
Could not locate {http://geonetwork-opensource.org/}Apotheken in catalog.但是xml的构建方式与GeoServer演示页面上的wps插件通过wps请求构建器发送的xml完全相同。
我的XML (只包含相关部分):
<wps:Input>
<ows:Identifier>features</ows:Identifier>
<wps:Reference mimeType='text/xml' xlink:href='http://geoserver/wfs' method='POST'>
<wps:Body>
<wfs:GetFeature xmlns:gn='http://geonetwork-opensource.org/' service='wfs' version='1.0.0' outputFormat='GML2'>
<wfs:Query typeName='gn:Apotheken'/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>WPS-请求生成器XML:
<wps:Input>
<ows:Identifier>features</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
<wps:Body>
<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" xmlns:gn="http://geonetwork-opensource.org/">
<wfs:Query typeName="gn:apotheken"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>任何提示都将不胜感激。
发布于 2015-09-08 18:14:49
GeoServer WPS区分大小写,这意味着FeatureCollection的名称必须与您上传到GeoServer的FeatureCollection完全相同。GeoNetwork将其转换为以大写字母开头,例如,apotheken而不是Apotheken。因此,请注意这一点。
https://stackoverflow.com/questions/32453477
复制相似问题