Issue Type: Bug Bug
Affects Versions: 2.2.5
Assignee: Andrea Aime
Components: WFS
Created: 27/Mar/13 9:00 PM
Description:

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="gns:PETROLEUM.NZ_2D_SEIS_LINES" 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.

The geoserver is public. Post the above to:
http://maps.gns.cri.nz/geoserver/wms

Environment: Windows Server 2008 (I think). Tomcat, ArcSDE 9.3
Project: GeoServer
Priority: Major Major
Reporter: Phil Scadden
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to