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

viewparams - provide query and aggregation #28

Closed nreese closed 7 years ago

nreese commented 7 years ago

Is it possible to provide both a query and aggregation in viewparams? If so, what is the syntax?

sjudeng commented 7 years ago

Yes, use a semi-colon as separator: viewparams=q:encoded_query_body;a:encoded_aggregation_body. See SQL Views documentation for more info. I need to update docs to include this.

nreese commented 7 years ago

Thanks. I have a kibana tilemap plugin that allows for putting WMS overlays on the map. And...if the WMS layer is served from Elasticsearch with ElasticGeo, it passes kibana's filter context to the WMS layer. Meaning that the WMS layer updates anytime new kibana filters are applied. I can even use WMS layers generated from aggregations now!

animated_wms_agg

sjudeng commented 7 years ago

Sounds powerful. Thanks for sharing.