Hi

I'm tried to use geoserver WPS query using WPS request builder. I know that
i may use the simple wfs request to perform  a filter on features, but i
prefer to use a WPS because i can use this in a service orchestration
workflow.
This is the xml generated by the request builder:


<?xml version="1.0" encoding="UTF-8"?>
<wps:Execute version="1.0.0" service="WPS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://www.opengis.net/wps/1.0.0";
xmlns:wfs="http://www.opengis.net/wfs";
xmlns:wps="http://www.opengis.net/wps/1.0.0";
xmlns:ows="http://www.opengis.net/ows/1.1";
xmlns:gml="http://www.opengis.net/gml";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:wcs="http://www.opengis.net/wcs/1.1.1";
xmlns:xlink="http://www.w3.org/1999/xlink";
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd";>
  <ows:Identifier>gs:Query</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>features</ows:Identifier>
      <wps:Reference
xlink:href="http://briseide01.ingr.briseide.eu:8080/geoserver/ccss/ows?service=WFS&amp;version=1.0.0&amp;request=GetFeature&amp;typeName=ccss:Flood2010_CS_HO_EC";
method="GET"/>
    </wps:Input>
    <wps:Input>
      <ows:Identifier>filter</ows:Identifier>
      <wps:Data>
        <wps:ComplexData mimeType="text/xml; subtype=filter/1.0">
          <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc";>
           <FeatureId fid="Flood2010_CS_HO_EC.17"/>
   </ogc:Filter>

        </wps:ComplexData>
      </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>

and this the error returned

Process failed during execution Could not convert Flood2010_CS_HO_EC.17 to
target type org.opengis.filter.Filter

this is the syntax passed into the filter field

<Filter>
          <FeatureId fid="Flood2010_CS_HO_EC.17"/>
 </Filter>

and this a simple WFS filter request which works

http://briseide01.ingr.briseide.eu:8080/geoserver/ccss/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ccss:Flood2010_CS_HO_EC&filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3CFeatureId%20fid=%22Flood2010_CS_HO_EC.17%22/%3E%3C/ogc:Filter%3E

Thanks
Federico



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Geoserver-gs-query-WPS-tp4358697p4358697.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to