elasticgeo
elasticgeo copied to clipboard
Geohash aggregation when there's no buckets
@sjudeng I have come across an issue when using the geohash aggregation. If there's no buckets returned in the aggregation, ie from the user panning the map to an area where the isn't any data, the request seems to not return to Geoserver and times out.
I worked around this by adding the following in GeoHashGridProcess execute: method:
if (obsFeatures.size() == 0) {
return null;
}
Let me know if I am missing something as this seems like it would be a common scenario. Thanks!