Package org.geotools.gce.imagemosaic
Class Mosaicker
Object
Mosaicker
A class doing the mosaic operation on top of a List of
MosaicElement
s.- Author:
- Simone Giannecchini, GeoSolutions SAS
-
Constructor Summary
ConstructorsConstructorDescriptionMosaicker
(RasterLayerResponse rasterLayerResponse, MosaicInputs inputs, MergeBehavior mergeBehavior) -
Method Summary
Modifier and TypeMethodDescriptionOnce we reach this method it means that we have loaded all the images which were intersecting the requested envelope.createMosaic
(boolean useFinalImageLayout) Once we reach this method it means that we have loaded all the images which were intersecting the requested envelope.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 Details
-
Mosaicker
public Mosaicker(RasterLayerResponse rasterLayerResponse, MosaicInputs inputs, MergeBehavior mergeBehavior)
-
-
Method Details
-
createMosaic
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
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
-