On Mon, Nov 5, 2012 at 3:28 PM, Florent Gravin
<[email protected]> 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

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

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to