Package org.apache.sis.storage.aggregate
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 TypeMethodDescriptionapply(MergeStrategy strategy) Returns a resource with the same data but the specified merge strategy.voidSets the name of the resource.
-
Method Details
-
setName
Sets the name of the resource. This method is invoked byGroupAggregate.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
Returns a resource with the same data but the specified merge strategy. If this resource already uses the given strategy, then returnsthis. 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 forRasterLoadingStrategyandMergeStrategy. But the former changes the state of the resource while the latter returns a new resource. This is becauseRasterLoadingStrategydoes not change data, whileMergeStrategycan change the data obtained from the resource.- Parameters:
strategy- the new merge strategy to apply.- Returns:
- resource using the specified strategy (may be
this).
-