Hi there,
I have just created a patch following the tutorial on how to submit a patch using github pull-requests from the GeoServer-documentation page. (http://docs.geoserver.org/latest/en/developer/policies/patches.html). A new test ‚testGetFeatureCount() was created in the ‚GeoJSONTest.java‘, which shows the featureCount for a request without a filter and a request with a filter.
I have created a branch named ‚json_featurecount‘ on my github-page https://github.com/PaulBiskup/geoserver/tree/json_featurecount
I have already sent a pull request to the master branch.
Is there anything else I have to do to get the patch integrated into the master branch?
Regards
Paul
Von: Biskup, Paul
Gesendet: Mittwoch, 20. Februar 2013 15:10
An: ‘Andrea Aime’
Cc: geoserver-devel@anonymised.com.sourceforge.net
Betreff: AW: [Geoserver-devel] JSON output - total number of features for paging
Thanks for the information about the official way for contributing.
I’ll try to submit my patch regarding the minimum requirements.
Regards
Paul
Von: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] Im Auftrag von Andrea Aime
Gesendet: Mittwoch, 20. Februar 2013 12:59
An: Biskup, Paul
Cc: Justin Deoliveira; geoserver-devel@lists.sourceforge.net
Betreff: Re: [Geoserver-devel] JSON output - total number of features for paging
On Wed, Feb 20, 2013 at 9:50 AM, Biskup, Paul <Paul.Biskup@anonymised.com…3654…> wrote:
I’m glad to hear, that you want to integrate this extra attribute in JSON-output!
Since I have no experience in the contribution of source code, maybe I’ll just send you my patched „GeoJSONOutputFormat.java“-file.
I’ve added the function „getNumberOfFeaturesFromRequest“, which gets called before the JSON-object gets written.
This function also respects filters. So if a filter gets passed, only the count of the filtered features gets returned.
The positions I have edited are marked with PBI-comment.
I hope that this is sufficient.
Generally speaking we don’t accept changes unless they are accompained by a test.
The bare minimum is a patch (not the full files) against the current GeoServer master that contains both the change to the code, and the test
showing it works.
If that’s too hard you can open an improvement request on jira.codehaus.org, attach the file above, and wait
for a good soul that completes the minimum requirements for you.
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