Search code examples
aggregate-functionsgeotoolsgeomesa

Aggregations With Geomesa


Does geomesa support aggregation functions?. Like 1.

  1. Calculating matching feature COUNT for the given query.
  2. Max/Min of an attribute for specified query collections.
  3. Avg of an attribute value for specified query collections.

I tried with geotools aggregate functions but they are not getting updated for new records being inserted. I also tried using offset for the feature but It's not working(as was suggested by one of the developers that geomesa doesn't support offsets). What can be done to achieve such operations?


Solution

  • You could use the GeoMesa Spark formats, then use Spark built-in summary statisitics. See these spark mllib doc.

    Also for version 1.3.2 it looks like more summary statistics are being added server-side. See this commit. That will be more efficient than Spark.