Package org.apache.sis.internal.storage
Class TiledGridResource.Subset
java.lang.Object
org.apache.sis.internal.storage.TiledGridResource.Subset
- Enclosing class:
TiledGridResource
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 Summary
ConstructorsConstructorDescriptionSubset(GridGeometry domain, int[] range) Creates parameters for the given domain and range. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif reading data in this subset will read contiguous values on the x axis.
-
Constructor Details
-
Subset
Creates parameters for the given domain and range.- Parameters:
domain- the domain argument specified by user in a call toGridCoverageResource.read(…).range- the range argument specified by user in a call toGridCoverageResource.read(…).- Throws:
ArithmeticException- if pixel indices exceed 64 bits integer capacity.DataStoreException- if a call toTiledGridResourcemethod failed.RasterFormatException- if the sample model is not recognized.IllegalArgumentException- if an error occurred in an operation such as creating theSampleModelsubset for selected bands.
-
-
Method Details
-
isXContiguous
public boolean isXContiguous()Returnstrueif reading data in this subset will read contiguous values on the x axis. This method returnstrueif 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.
BandedSampleModel. This method does not check the sample model type.- Returns:
- whether the values to read on a row are contiguous.
-