elasticgeo icon indicating copy to clipboard operation
elasticgeo copied to clipboard

Geohash aggregation when there's no buckets

Open albertwgchu opened this issue 4 years ago • 0 comments

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

albertwgchu avatar Jun 22 '21 16:06 albertwgchu