Interface AggregatedResource

All Known Implementing Classes:
ConcatenatedGridResource, GroupAggregate

interface AggregatedResource
The result of an aggregation computed by CoverageAggregator.
Since:
1.3
Version:
1.3
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(MergeStrategy strategy)
    Returns a resource with the same data but the specified merge strategy.
    void
    Sets the name of the resource.
  • Method Details

    • setName

      void setName(String name)
      Sets the name of the resource. This method is invoked by GroupAggregate.simplify(CoverageAggregator) when a aggregate node is excluded and we want to inherit the name of the excluded node. It should happen before the resource is published.
      Parameters:
      name - new name of the resource.
    • apply

      Resource apply(MergeStrategy strategy)
      Returns a resource with the same data but the specified merge strategy. If this resource already uses the given strategy, then returns this. Otherwise returns a new resource. This resource is not modified by this method call because this method can be invoked after this resource has been published.
      API design note: we could try to design a common API for RasterLoadingStrategy and MergeStrategy. But the former changes the state of the resource while the latter returns a new resource. This is because RasterLoadingStrategy does not change data, while MergeStrategy can change the data obtained from the resource.
      Parameters:
      strategy - the new merge strategy to apply.
      Returns:
      resource using the specified strategy (may be this).