Package org.geotools.gce.imagemosaic
Class Mosaicker
- Object
-
- Mosaicker
-
public class Mosaicker extends Object
A class doing the mosaic operation on top of a List ofMosaicElement
s.- Author:
- Simone Giannecchini, GeoSolutions SAS
-
-
Constructor Summary
Constructors Constructor Description Mosaicker(RasterLayerResponse rasterLayerResponse, MosaicInputs inputs, MergeBehavior mergeBehavior)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MosaicElement
createMosaic()
Once we reach this method it means that we have loaded all the images which were intersecting the requested envelope.MosaicElement
createMosaic(boolean useFinalImageLayout)
Once we reach this method it means that we have loaded all the images which were intersecting the requested envelope.MosaicElement
createMosaic(boolean useFinalImageLayout, boolean skipSingleElementOptimization)
Once we reach this method it means that we have loaded all the images which were intersecting the requested envelope.
-
-
-
Constructor Detail
-
Mosaicker
public Mosaicker(RasterLayerResponse rasterLayerResponse, MosaicInputs inputs, MergeBehavior mergeBehavior)
-
-
Method Detail
-
createMosaic
public MosaicElement createMosaic() throws IOException
Once we reach this method it means that we have loaded all the images which were intersecting the requested envelope. Next step is to create the final mosaic image and cropping it to the exact requested envelope.- Returns:
- A
MosaicElement
}. - Throws:
IOException
-
createMosaic
public MosaicElement createMosaic(boolean useFinalImageLayout) throws IOException
Once we reach this method it means that we have loaded all the images which were intersecting the requested envelope. Next step is to create the final mosaic image and cropping it to the exact requested envelope.- Parameters:
useFinalImageLayout
- whether the final image layout requested should be used. if false then a default layout will be used. useful if your mosaic layout doesn't match the final layout. default layout will be whatever layout is necessary to do the mosaic op- Returns:
- A
MosaicElement
}. - Throws:
IOException
-
createMosaic
public MosaicElement createMosaic(boolean useFinalImageLayout, boolean skipSingleElementOptimization) throws IOException
Once we reach this method it means that we have loaded all the images which were intersecting the requested envelope. Next step is to create the final mosaic image and cropping it to the exact requested envelope.- Parameters:
useFinalImageLayout
- whether the final image layout requested should be used. if false then a default layout will be used. useful if your mosaic layout doesn't match the final layout. default layoutskipSingleElementOptimization
- whether the single element case should be optimized. some callers wish to skip this since there are a few differences along this path that can cause issues (namely using the final image layout for operations)- Returns:
- A
MosaicElement
}. - Throws:
IOException
-
-