Class TiledGridResource.Subset

java.lang.Object
org.apache.sis.internal.storage.TiledGridResource.Subset
Enclosing class:
TiledGridResource

public final class TiledGridResource.Subset extends Object
Parameters that describe the resource subset to be accepted by the TiledGridCoverage constructor. This is a temporary class used only for transferring information from TiledGridResource. This class does not perform I/O operations.
  • Constructor Details

    • Subset

      public Subset(GridGeometry domain, int[] range) throws DataStoreException
      Creates parameters for the given domain and range.
      Parameters:
      domain - the domain argument specified by user in a call to GridCoverageResource.read(…).
      range - the range argument specified by user in a call to GridCoverageResource.read(…).
      Throws:
      ArithmeticException - if pixel indices exceed 64 bits integer capacity.
      DataStoreException - if a call to TiledGridResource method failed.
      RasterFormatException - if the sample model is not recognized.
      IllegalArgumentException - if an error occurred in an operation such as creating the SampleModel subset for selected bands.
  • Method Details

    • isXContiguous

      public boolean isXContiguous()
      Returns true if reading data in this subset will read contiguous values on the x axis. This method returns true if all following conditions are met:
      • All bands will be read (ignoring change of band order because this change is handled by the sample model).
      • There is no subsampling on the x axis.
      Note that the first criterion can often be relaxed when the sample model is an instance of BandedSampleModel. This method does not check the sample model type.
      Returns:
      whether the values to read on a row are contiguous.