GML3 outputformat from WFS 1.0.0 returns zero for the number of features

Description

The response to a WFS query on a sql view returns zero for the number of features

/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=myns:test_sql_view&maxFeatures=50&outputFormat=GML2

returns

<wfs:FeatureCollection numberOfFeatures="0" ...>
<gml:featureMembers>
<gml:boundedBy/>
<myns:test_sql_view gml:id="test_sql_view.fid-7b81134_12ca359e616_db5"/>
<myns:test_sql_view gml:id="test_sql_view.fid-7b81134_12ca359e616_db6"/>
..
<gml:featureMembers>
</wfs:FeatureCollection>

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:26 PM

CodeHaus Comment From: cgalpin - Time: Fri, 3 Dec 2010 14:32:18 -0600
---------------------
<p>Sorry that was GML3</p>

codehaus
April 10, 2015, 4:26 PM

CodeHaus Comment From: jratike80 - Time: Wed, 4 Mar 2015 02:59:51 -0600
---------------------
<p>The issue is real but the summary was wrong in suggesting that it has something to do with SQL view layers. In fact this seems to happen always when using GML3 outputformat in WFS 1.0.0 service.</p>

<p><a href="http://localhost:8080/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=getfeature&amp;typename=topp:states&amp;outputformat=GML3" class="external-link" rel="nofollow">http://localhost:8080/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=getfeature&amp;typename=topp:states&amp;outputformat=GML3</a></p>

<p>GML which holds all the data starts as</p>

<p>&lt;wfs:FeatureCollection numberOfFeatures="0" timeStamp="2015-03-04T08:54:42.811Z" </p>

Jukka Rahkonen
July 24, 2016, 5:58 PM

NumberOfFeatures still "0" with Geoserver 2.9.

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

None

Affects versions

Components

Priority

Medium
Configure