Class MultiLevelROIRaster
- Object
-
- MultiLevelROIRaster
-
- All Implemented Interfaces:
MultiLevelROI
public class MultiLevelROIRaster extends Object implements MultiLevelROI
MultiLevelROIimplementation supporting Raster masking. Notice that actually it does not support Inset definition.- Author:
- Nicola Lagomarsini GeoSolutions
-
-
Constructor Summary
Constructors Constructor Description MultiLevelROIRaster(DatasetLayout layout, MaskOverviewProvider maskOvrProvider, SimpleFeature sf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometrygetFootprint()This method returns aGeometryobject containing the ROI footprint or, at least, its bounding boxROIgetTransformedROI(AffineTransform at, int imageIndex, Rectangle imgBounds, ImageReadParam params, ReadType readType)Returns a transformed ROI based on the input parametersbooleanisEmpty()Checks if the providedMultiLevelROIobject is empty or not
-
-
-
Constructor Detail
-
MultiLevelROIRaster
public MultiLevelROIRaster(DatasetLayout layout, MaskOverviewProvider maskOvrProvider, SimpleFeature sf) throws IOException- Throws:
IOException
-
-
Method Detail
-
getTransformedROI
public ROI getTransformedROI(AffineTransform at, int imageIndex, Rectangle imgBounds, ImageReadParam params, ReadType readType)
Description copied from interface:MultiLevelROIReturns a transformed ROI based on the input parameters- Specified by:
getTransformedROIin interfaceMultiLevelROI- Parameters:
at- AffineTransformationimageIndex- Overview level used for extracting the correct image overviewimgBounds- ImageBounds to set for Raster ROIsreadType-ReadTypeobject indicating how the image file must be read. This may be useful for raster ROIs- Returns:
- a
ROIobject
-
isEmpty
public boolean isEmpty()
Description copied from interface:MultiLevelROIChecks if the providedMultiLevelROIobject is empty or not- Specified by:
isEmptyin interfaceMultiLevelROI- Returns:
- a boolean indicating if this object is empty
-
getFootprint
public Geometry getFootprint()
Description copied from interface:MultiLevelROIThis method returns aGeometryobject containing the ROI footprint or, at least, its bounding box- Specified by:
getFootprintin interfaceMultiLevelROI- Returns:
- a
Geometryobject defining ROI bounds
-
-