Hi List,
I discussed getting GeoServer hit counts > max features limit a while back on the user's list and Andrea pointed me to the developers list to pursue it further.
I've taken some time out this weekend to develop a patch against master that adds this capability and lets users configure it through the GUI and also added a couple of unit tests.
The patch is attached to GEOS-5627
The patch works by setting max features to java.lang.Integer.MAX_VALUE (from Query.java in geotools) so this is the maximum we can count with this approach.
To setup the change to be configurable, I've added support for my new configuration flag "hitsIgnoreMaxFeatures" wherever I saw the "featureBounding" flag, so I've changed:
* config hibernate mappings
* legacyServiceReader (legacy... is this needed?)
* rest/WFSSettingsResource and wfsSettings.ftl
* WFS admin page in GUI
* GeoServerApplication.properties language file (needs translations for other languages files?)
* WFS GetFeature
* WFS Info
* WFSLoader
* ... And added a new unit test class GetFeatureHitsIgnoreMaxFeatures
How does this sound? It would be great to get this into GeoServer 2.4. I'm happy to do more work on this if its needed.
Thanks,
Geoff