Class DefaultSubmosaicProducer
- Object
-
- BaseSubmosaicProducer
-
- DefaultSubmosaicProducer
-
- All Implemented Interfaces:
SubmosaicProducer
public class DefaultSubmosaicProducer extends BaseSubmosaicProducer
Class responsible for loading granules, mosaicking a group of granules, pre-processing them before handling, etc.- Author:
- Simone Giannecchini, GeoSolutions SAS
-
-
Field Summary
-
Fields inherited from class BaseSubmosaicProducer
doInputTransparency, dryRun, granulesFutures, granulesNumber, hasAlpha, inputTransparentColor, rasterLayerResponse, sourceThreshold
-
-
Constructor Summary
Constructors Constructor Description DefaultSubmosaicProducer(RasterLayerResponse rasterLayerResponse, Filter granuleFilter, boolean dryRun)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(GranuleDescriptor granuleDescriptor)This method is responsible for collecting all the granules accepting a certainFilter.-
Methods inherited from class BaseSubmosaicProducer
acceptGranule, collectGranules, createMosaic, doInputTransparency, getSourceThreshold, hasAlpha
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface SubmosaicProducer
init, isReprojecting
-
-
-
-
Constructor Detail
-
DefaultSubmosaicProducer
public DefaultSubmosaicProducer(RasterLayerResponse rasterLayerResponse, Filter granuleFilter, boolean dryRun)
Constructor.- Parameters:
granuleFilter- theFilterwe are supposed to use to select granules for thisDefaultSubmosaicProducer.dryRun- whether we need to make
-
-
Method Detail
-
accept
public boolean accept(GranuleDescriptor granuleDescriptor)
This method is responsible for collecting all the granules accepting a certainFilter.The method return
truewhen aGranuleDescriptorfor which theGranuleDescriptor.originatorSimpleFeatureis evaluated positively by the internal filter and retain the granule, orfalseotherwise so that the caller can keep trying with a differentDefaultSubmosaicProducer- Specified by:
acceptin interfaceSubmosaicProducer- Overrides:
acceptin classBaseSubmosaicProducer- Parameters:
granuleDescriptor- theGranuleDescriptorto test with the internalFilter- Returns:
truein case theGranuleDescriptoris added,falseotherwise.
-
-