我正在从image运行geoserver 2.9.4,我试图让tubeselect示例正常工作,因为我需要展示点如何随时间变化。我的WPS请求如下:
<ows:Identifier>gs:Import</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>features</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wps" method="POST">
<wps:Body>
<wps:Execute version="1.0.0" service="WPS">
<ows:Identifier>geomesa:TubeSelect</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>tubeFeatures</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:geomesa="geomesa">
<wfs:Query typeName="geomesa:posicion"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>featureCollection</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:geomesa="geomesa">
<wfs:Query typeName="geomesa:posicion"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>maxSpeed</ows:Identifier>
<wps:Data>
<wps:LiteralData>55</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>maxTime</ows:Identifier>
<wps:Data>
<wps:LiteralData>120</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml; subtype=wfs-collection/1.0">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>coverage</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
<wps:Body/>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>workspace</ows:Identifier>
<wps:Data>
<wps:LiteralData>geomesa</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>store</ows:Identifier>
<wps:Data>
<wps:LiteralData>posiciones</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>name</ows:Identifier>
<wps:Data>
<wps:LiteralData>posiciones-current</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>srs</ows:Identifier>
<wps:Data>
<wps:LiteralData>EPSG:4326</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput>
<ows:Identifier>layerName</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
但是当我执行WPS过程时,我收到以下错误:
<ows:ExceptionText>Unrecognized request type {}</ows:ExceptionText>
我的设置是几何1.3.2,apache accumulo作为DataStore。我的数据存储是几何:posiciones
有什么想法吗?
答案 0 :(得分:1)
您可能需要指定内容类型标题 - 在curl中它将类似于:
curl -X POST -d @my-request.xml 'http://localhost:8080/geoserver/wps' -H 'Content-Type: text/xml'