WFS GetFeature with a FeatureId fails (10.1 SP1)

1523
1
07-24-2013 08:26 AM
CoreyAlix
Occasional Contributor
I've discovered that this request fails:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature
service="WFS"
version="1.1.0"
maxFeatures="1"
xmlns:wfs="http://www.opengis.net/wfs">
<wfs:Query typeName="LV_Properties">
  <Filter xmlns="http://www.opengis.net/ogc">
                   <FeatureId fid="14" />
  </Filter>
</wfs:Query>
</wfs:GetFeature>


But this request succeeds:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature
service="WFS"
version="1.1.0"
maxFeatures="1"
xmlns:wfs="http://www.opengis.net/wfs">
<wfs:Query typeName="LV_Properties">
  <Filter xmlns="http://www.opengis.net/ogc">
                     <PropertyIsEqualTo><PropertyName>FID</PropertyName><Literal>14</Literal></PropertyIsEqualTo>
  </Filter>
</wfs:Query>
</wfs:GetFeature>

Can someone confirm if my first request is incorrect or if this is a defect in 10.1?  The error I receive in the first request is as follows:

<ows:ExceptionReport version='1.1.0' language='en' xmlns:ows='http://www.opengis.net/ows'><ows:Exception exceptionCode='NoApplicableCode'><ows:ExceptionText>Generic WFS service error.</ows:ExceptionText></ows:Exception></ows:ExceptionReport>
Tags (2)
0 Kudos
1 Reply
CoreyAlix
Occasional Contributor
From http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004rz000000:

The FeatureID parameter can be used in GetFeature requests to request specific features in a WFS service. The FeatureID parameter consists of the feature type and the feature ID (gml:id), not the OBJECTID of the feature. The format of a feature ID for a feature in a WFS service is <FeatureType>.<gml:id>. One method to identify the gml:id of a feature in a WFS service is to do a GetFeature request on the feature type of interest.
0 Kudos