[Geoserver-devel] app-schema numberMatched is unknown

Hi,

Was wondering why on complex feature schema i have a numberMatched as unknown while the numberReturned is ok.

I’m on geoserver master branch. I don’t understand because when i debug the lines :
In GetFeature:buildResults

result.setNumberOfFeatures(BigInteger.valueOf(count));
result.setTotalNumberOfFeatures(BigInteger.valueOf(total));

which are the 2 methods which set the 2 values, both count and total=0, i cant find an other place where the code could set those values in the response, and my response is numberMatched=“unknown” numberReturned=“4”

Just a bit lost with this if someone could give advices thanks


Florent Gravin
Camptocamp - Chambéry
0479444492

On Mon, Nov 5, 2012 at 3:28 PM, Florent Gravin
<florent.gravin@anonymised.com> wrote:

Hi,

Was wondering why on complex feature schema i have a numberMatched as
unknown while the numberReturned is ok.

I'm on geoserver master branch. I don't understand because when i debug the
lines :
In GetFeature:buildResults

result.setNumberOfFeatures(BigInteger.valueOf(count));
result.setTotalNumberOfFeatures(BigInteger.valueOf(total));

which are the 2 methods which set the 2 values, both count and total=0, i
cant find an other place where the code could set those values in the
response, and my response is numberMatched="unknown" numberReturned="4"

Just a bit lost with this if someone could give advices thanks

Counting in app-schema is so expensive that it's not even done for the ones
returned, there is a XSLT sheet counting the results after they are
encoded to GML.

I believe the reason is that the code can't get to know how many records are
matched without fully reading them anyways.

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Thanks for repply.
Does it also mean that other operation like sorting cannot work cause it’s too expensive ?

Actually, i use WFS 2.0.0 on master branch many WFS services don’t work pretty well, i wonder if it is cause the master is a bit broken, or just because it is app-schema that can’t support some of theses services:

sortBy doesnt work (is it because it’s too expensive or is it a bug ? )
startIndex doesnt work (it starts with the same feature whatever startindex value is, and the next=“” param in the response is not set)
resultType doesnt work either …

etc…

Do you think it is normal behavior or bug that i have to investigate on ?

Thanks for help

On Mon, Nov 5, 2012 at 4:03 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Mon, Nov 5, 2012 at 3:28 PM, Florent Gravin
<florent.gravin@anonymised.com> wrote:

Hi,

Was wondering why on complex feature schema i have a numberMatched as
unknown while the numberReturned is ok.

I’m on geoserver master branch. I don’t understand because when i debug the
lines :
In GetFeature:buildResults

result.setNumberOfFeatures(BigInteger.valueOf(count));
result.setTotalNumberOfFeatures(BigInteger.valueOf(total));

which are the 2 methods which set the 2 values, both count and total=0, i
cant find an other place where the code could set those values in the
response, and my response is numberMatched=“unknown” numberReturned=“4”

Just a bit lost with this if someone could give advices thanks

Counting in app-schema is so expensive that it’s not even done for the ones
returned, there is a XSLT sheet counting the results after they are
encoded to GML.

I believe the reason is that the code can’t get to know how many records are
matched without fully reading them anyways.

Cheers
Andrea

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it



Florent Gravin
Camptocamp - Chambéry
0479444492

On Mon, Nov 5, 2012 at 4:25 PM, Florent Gravin
<florent.gravin@anonymised.com> wrote:

Thanks for repply.
Does it also mean that other operation like sorting cannot work cause it's
too expensive ?

I believe the store does not support neither paging nor sorting, but
I'll let Ben
and the rest of the app-schema chime in and clarify

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

WFS 2.0 paging is not yet supported for app-schema data stores:
http://docs.geoserver.org/latest/en/user/data/app-schema/supported-gml-versions.html

Kind regards,
Ben.

On 05/11/12 22:28, Florent Gravin wrote:

Hi,

Was wondering why on complex feature schema i have a numberMatched as
unknown while the numberReturned is ok.

I'm on geoserver master branch. I don't understand because when i debug
the lines :
In GetFeature:buildResults

result.setNumberOfFeatures(BigInteger.valueOf(count));
result.setTotalNumberOfFeatures(BigInteger.valueOf(total));

which are the 2 methods which set the 2 values, both count and total=0,
i cant find an other place where the code could set those values in the
response, and my response is numberMatched="unknown"numberReturned="4"

Just a bit lost with this if someone could give advices thanks

--
Florent Gravin
Camptocamp - Chambéry
0479444492

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

On Tue, Nov 6, 2012 at 3:37 AM, Ben Caradoc-Davies
<Ben.Caradoc-Davies@anonymised.com> wrote:

WFS 2.0 paging is not yet supported for app-schema data stores:
http://docs.geoserver.org/latest/en/user/data/app-schema/supported-gml-versions.html

Ben, how about sorting, that was already part of the 1.1 spec?

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On 06/11/12 15:14, Andrea Aime wrote:

On Tue, Nov 6, 2012 at 3:37 AM, Ben Caradoc-Davies
<Ben.Caradoc-Davies@anonymised.com> wrote:

WFS 2.0 paging is not yet supported for app-schema data stores:
http://docs.geoserver.org/latest/en/user/data/app-schema/supported-gml-versions.html

Ben, how about sorting, that was already part of the 1.1 spec?

Sorry, Rini tells me that it does not work:

GEOT-4241: Support sortBy in app-schema
https://jira.codehaus.org/browse/GEOT-4241

Kind regards,

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

It is not implemented at the datastore level - at least in the base classes.

--
Jody Garnett

On 06/11/2012, at 5:28 AM, Ben Caradoc-Davies
<Ben.Caradoc-Davies@anonymised.com> wrote:

On 06/11/12 15:14, Andrea Aime wrote:

On Tue, Nov 6, 2012 at 3:37 AM, Ben Caradoc-Davies
<Ben.Caradoc-Davies@anonymised.com> wrote:

WFS 2.0 paging is not yet supported for app-schema data stores:
http://docs.geoserver.org/latest/en/user/data/app-schema/supported-gml-versions.html

Ben, how about sorting, that was already part of the 1.1 spec?

Sorry, Rini tells me that it does not work:

GEOT-4241: Support sortBy in app-schema
https://jira.codehaus.org/browse/GEOT-4241

Kind regards,

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel