[Geoserver-users] Problem with WPS wfs:GetFeature

I am trying to use the WPS with a wfs:GetFeature. Here is my call.

<?xml version="1.0" encoding="UTF-8"?>
<wps:Execute service='WPS' version='1.0.0'
     xmlns:wps='http://www.opengis.net/wps/1.0.0
xmlns:vagis="http://www.openroadsconsulting.com/vagis&quot;
     xmlns:ows='http://www.opengis.net/ows/1.1
xmlns:xlink="http://www.w3.org/1999/xlink&quot;
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
     xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://geoserver.itc.nl:8080/wps/schemas/wps/1.0.0/wpsExecute_request.xsd&quot;&gt;
<ows:Identifier>gs:Nearest</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>features</ows:Identifier>
<wps:Reference schema="http://schemas.opengis.net/gml/2.1.2/feature.xsd&quot;
xlink:href="http://geoserver/wfs&quot; method="POST">
<wps:Body>
<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
                         
xmlns:vagis="http://www.openroadsconsulting.com/vagis&quot;
                         xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
                         xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                         xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
<wfs:Query typeName="vagis:va_jurisdictions_ivr">
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsNotEqualTo>
<ogc:PropertyName>juris_type</ogc:PropertyName>
<ogc:Literal>County</ogc:Literal>
</ogc:PropertyIsNotEqualTo>
<ogc:DWithin>
<ogc:PropertyName>vagis:the_geom</ogc:PropertyName>
<gml:Point>
<gml:coordinates>-77.264998,37.405998</gml:coordinates>
</gml:Point>
<ogc:Distance units="deg">.3</ogc:Distance>
</ogc:DWithin>
</ogc:And>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>point</ows:Identifier>
<wps:Data>
<wps:LiteralData>-77.264998,37.405998</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/XML"
             schema="http://schemas.opengis.net/gml/2.1.2/feature.xsd&quot;&gt;
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>

I am getting back this error:

<?xml version="1.0" encoding="UTF-8"?>
<wps:ExecuteResponse xml:lang="en" service="WPS"
serviceInstance="http://localhost:8080/geoserver/ows?&quot; version="1.0.0"
xmlns:wps="http://www.opengis.net/wps/1.0.0&quot;
xmlns:ows="http://www.opengis.net/ows/1.1&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;&lt;wps:Process
wps:processVersion="1.0.0"><ows:Identifier>gs:Nearest</ows:Identifier><ows:Title>Get
nearest feature</ows:Title><ows:Abstract>Get nearest
feature</ows:Abstract></wps:Process><wps:Status
creationTime="2012-03-22T13:58:47.266Z"><wps:ProcessFailed><ows:ExceptionReport
version="1.1.0"><ows:Exception
exceptionCode="NoApplicableCode"><ows:ExceptionText>Process failed
during execution
Process execution a99baefb-de09-47dd-afa8-25199bd55f93 failed
java.lang.NoSuchMethodError:
org.geoserver.wfs.WebFeatureService.getFeature(Lnet/opengis/wfs/GetFeatureType;)Lnet/opengis/wfs/FeatureCollectionType;
org.geoserver.wfs.WebFeatureService.getFeature(Lnet/opengis/wfs/GetFeatureType;)Lnet/opengis/wfs/FeatureCollectionType;</ows:ExceptionText></ows:Exception></ows:ExceptionReport></wps:ProcessFailed></wps:Status></wps:ExecuteResponse>

Any ideas what might be wrong? David

--

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison@anonymised.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526

This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.

My fault. I had mismatched versions. David

On 3/22/2012 10:07 AM, David R Robison wrote:

I am trying to use the WPS with a wfs:GetFeature. Here is my call.

<?xml version="1.0" encoding="UTF-8"?>
<wps:Execute service='WPS' version='1.0.0'
      xmlns:wps='http://www.opengis.net/wps/1.0.0
xmlns:vagis="http://www.openroadsconsulting.com/vagis&quot;
      xmlns:ows='http://www.opengis.net/ows/1.1
xmlns:xlink="http://www.w3.org/1999/xlink&quot;
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
      xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://geoserver.itc.nl:8080/wps/schemas/wps/1.0.0/wpsExecute_request.xsd&quot;&gt;
<ows:Identifier>gs:Nearest</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>features</ows:Identifier>
<wps:Reference schema="http://schemas.opengis.net/gml/2.1.2/feature.xsd&quot;
xlink:href="http://geoserver/wfs&quot; method="POST">
<wps:Body>
<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"

xmlns:vagis="http://www.openroadsconsulting.com/vagis&quot;
                          xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
                          xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                          xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
<wfs:Query typeName="vagis:va_jurisdictions_ivr">
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsNotEqualTo>
<ogc:PropertyName>juris_type</ogc:PropertyName>
<ogc:Literal>County</ogc:Literal>
</ogc:PropertyIsNotEqualTo>
<ogc:DWithin>
<ogc:PropertyName>vagis:the_geom</ogc:PropertyName>
<gml:Point>
<gml:coordinates>-77.264998,37.405998</gml:coordinates>
</gml:Point>
<ogc:Distance units="deg">.3</ogc:Distance>
</ogc:DWithin>
</ogc:And>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>point</ows:Identifier>
<wps:Data>
<wps:LiteralData>-77.264998,37.405998</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/XML"
              schema="http://schemas.opengis.net/gml/2.1.2/feature.xsd&quot;&gt;
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>

I am getting back this error:

<?xml version="1.0" encoding="UTF-8"?>
<wps:ExecuteResponse xml:lang="en" service="WPS"
serviceInstance="http://localhost:8080/geoserver/ows?&quot; version="1.0.0"
xmlns:wps="http://www.opengis.net/wps/1.0.0&quot;
xmlns:ows="http://www.opengis.net/ows/1.1&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;&lt;wps:Process
wps:processVersion="1.0.0"><ows:Identifier>gs:Nearest</ows:Identifier><ows:Title>Get
nearest feature</ows:Title><ows:Abstract>Get nearest
feature</ows:Abstract></wps:Process><wps:Status
creationTime="2012-03-22T13:58:47.266Z"><wps:ProcessFailed><ows:ExceptionReport
version="1.1.0"><ows:Exception
exceptionCode="NoApplicableCode"><ows:ExceptionText>Process failed
during execution
Process execution a99baefb-de09-47dd-afa8-25199bd55f93 failed
java.lang.NoSuchMethodError:
org.geoserver.wfs.WebFeatureService.getFeature(Lnet/opengis/wfs/GetFeatureType;)Lnet/opengis/wfs/FeatureCollectionType;
org.geoserver.wfs.WebFeatureService.getFeature(Lnet/opengis/wfs/GetFeatureType;)Lnet/opengis/wfs/FeatureCollectionType;</ows:ExceptionText></ows:Exception></ows:ExceptionReport></wps:ProcessFailed></wps:Status></wps:ExecuteResponse>

Any ideas what might be wrong? David

--

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison@anonymised.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526

This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.