ngageoint / elasticgeo

ElasticGeo provides a GeoTools data store that allows geospatial features from an Elasticsearch index to be published via OGC services using GeoServer.
GNU General Public License v3.0
168 stars 85 forks source link

Allow clients to set aggregation precision #111

Closed jeremyjones2 closed 4 years ago

jeremyjones2 commented 4 years ago

Currently if a client passes a precision value in an aggregation, it is overridden by the precision computed in GeohashUtil. For some clients, it is desirable to determine the precision based on client state, for example when using a single tile layer, determining precision as a function of map zoom and viewport bounds. This change simply avoids updating the precision on the aggregation if one is already present in the request.

sjudeng commented 4 years ago

Hi thanks for this contribution, it looks good to me. Could you add a note to the documentation explaining the new capability? https://github.com/ngageoint/elasticgeo/blob/master/gs-web-elasticsearch/doc/index.rst

jeremyjones2 commented 4 years ago

Hi thanks for this contribution, it looks good to me. Could you add a note to the documentation explaining the new capability? https://github.com/ngageoint/elasticgeo/blob/master/gs-web-elasticsearch/doc/index.rst

Note added.