Class MultiLevelROIRaster

  • All Implemented Interfaces:
    MultiLevelROI

    public class MultiLevelROIRaster
    extends Object
    implements MultiLevelROI
    MultiLevelROI implementation supporting Raster masking. Notice that actually it does not support Inset definition.
    Author:
    Nicola Lagomarsini GeoSolutions
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Geometry getFootprint()
      This method returns a Geometry object containing the ROI footprint or, at least, its bounding box
      ROI getTransformedROI​(AffineTransform at, int imageIndex, Rectangle imgBounds, ImageReadParam params, ReadType readType)
      Returns a transformed ROI based on the input parameters
      boolean isEmpty()
      Checks if the provided MultiLevelROI object is empty or not
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiLevelROIRaster

        public MultiLevelROIRaster​(DatasetLayout layout,
                                   File file,
                                   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: MultiLevelROI
        Returns a transformed ROI based on the input parameters
        Specified by:
        getTransformedROI in interface MultiLevelROI
        Parameters:
        at - AffineTransformation
        imageIndex - Overview level used for extracting the correct image overview
        imgBounds - ImageBounds to set for Raster ROIs
        readType - ReadType object indicating how the image file must be read. This may be useful for raster ROIs
        Returns:
        a ROI object
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: MultiLevelROI
        Checks if the provided MultiLevelROI object is empty or not
        Specified by:
        isEmpty in interface MultiLevelROI
        Returns:
        a boolean indicating if this object is empty
      • getFootprint

        public Geometry getFootprint()
        Description copied from interface: MultiLevelROI
        This method returns a Geometry object containing the ROI footprint or, at least, its bounding box
        Specified by:
        getFootprint in interface MultiLevelROI
        Returns:
        a Geometry object defining ROI bounds