In moving from 2.1.3 to 2.2.5, we have noticed a change in behaviour with WFS.
What I want: I want to make spatial query against a layer but I only want selected attributes returned. I specifically do not want geometry returned because the node count on the geometry can be very large.
To achieve this, I made WFS query as this:
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="wks:myWorkspace" srsName="EPSG:900913">
<wfs:PropertyName>REGION</wfs:PropertyName>
<wfs:PropertyName>SURVEY</wfs:PropertyName>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:Intersects>
<ogc:PropertyName></ogc:PropertyName>
<gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913">
<gml:exterior>
<gml:LinearRing>
<gml:posList>19173872.382729 -4704412.5602451 19203224.201586 -4770454.1526743 19100492.835585 -4816927.8658653 19173872.382729 -4704412.5602451</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</ogc:Intersects>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
This did work but no longer does so. To make it work, I have add
<wfs:PropertyName>SHAPE</wfs:PropertyName>
to the property list. If I do this of course, then I get the geometry returned to me.
Now maybe the change was to conform better to standards, but if not, its a regression.
--
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232
Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.