Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geohash aggregation when there's no buckets #124

Open
albertwgchu opened this issue Jun 22, 2021 · 0 comments
Open

Geohash aggregation when there's no buckets #124

albertwgchu opened this issue Jun 22, 2021 · 0 comments

Comments

@albertwgchu
Copy link

albertwgchu commented Jun 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant