On Tue, Feb 19, 2013 at 10:32 AM, Biskup, Paul
<paul.bis...@fit.fichtner.de>wrote:
> Hello GeoServer-Developers,****
>
> ** **
>
> thanks for GeoServer, it’s a great product!****
>
> ** **
>
> I needed the possibility to display GeoServer-WFS data in an Ext-JS grid,
> which uses paging. In order to fulfill this requirement, the GeoServer
> output had to show the total number of features in a layer, because the
> client needs to know how many pages there are (see
> geoserver_wfs_json_output_total_features.png).****
>
> ** **
>
> I’ve extended the JSONoutputformat to return the total number of features,
> when doing a wfs-request. ****
>
> ** **
>
> Example:****
>
> ** **
>
> Request:
> http://localhost/geoserver/wfs?service=wfs&REQUEST=GetFeature&version=1.1.0&outputformat=json&TYPENAME=v_tunnel_oss_daten&maxFeatures=20&sortBy=streckennummer%20A&startIndex=20
> ****
>
> ** **
>
> Response: ****
>
> See geoserver_wfs_json_output_total_features_response.png****
>
> ** **
>
> Do you think that we should implement this extension into the main trunk?
> Because I think that it’s a small enhancement with a big benefit.****
>
> **
>
Yep, seems something useful and would put geojson on par with the GML
output in this respect.
I'm wondering, does the GeoJSON format has a concept of a feature count, or
would it be some GeoServer specific extension?
The other thing that we'd need along the patch is a test (or a modification
of some existing tests) checking the
feature count works as expected (both today, and in the future as other
people modify the code).
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
-------------------------------------------------------
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel