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.

 

Best regards

Paul

 

<<attachment: geoserver_wfs_json_output_total_features.png>>

<<attachment: geoserver_wfs_json_output_total_features_response.png>>

------------------------------------------------------------------------------
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

Reply via email to