Tomas,

I think this is a limitation in app-schema with WFS 2.0. Note that the full response also contains numberMatched="unknown"; I suspect the same root cause.

Here is an old discussion about numberMatched="unknown" in app-schema WFS 2.0 responses. The discussion is from 2012, but I do not think anything has changed:
http://osgeo-org.1560.x6.nabble.com/app-schema-numberMatched-is-unknown-td5014036.html

I do not see why this cannot be fixed because WFS 1.1 is quite happy to return a correct numberOfFeatures for requests with resulttype=hits.

I have created a Jira issue:

[GEOS-8243] app-schema WFS 2.0 resulttype=hits responses have numberMatched="0"
https://osgeo-org.atlassian.net/browse/GEOS-8243

Kind regards,
Ben.


On 02/08/17 11:39, Tomas Kliment wrote:
Dear all,

I am trying to understand why Geoserver (v2.10.2) WFS 2.0 response as
following:

http://bolegweb.geof.unizg.hr:2017/geoserver/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=ugs:GovernmentalService&outputFormat=gml32
&resultType=hits

returns always value of numberMatched attribute = 0 on app-schema store
type.

Whereas If I send the same request to the simple type store version it
returns correct count of features:

http://bolegweb.geof.unizg.hr:2017/geoserver/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=ugepix:ugs_govser&outputFormat=gml32&resultType=hits

numberMatched="689"

Any ideas where could be the problem?

Many thanks in advance,
Tomas



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to