Package org.apache.sis.storage.geotiff
Class DataSubset.Tile
java.lang.Object
org.apache.sis.internal.storage.TiledGridCoverage.Snapshot
org.apache.sis.storage.geotiff.DataSubset.Tile
- All Implemented Interfaces:
Comparable<DataSubset.Tile>
- Enclosing class:
- DataSubset
private static final class DataSubset.Tile
extends TiledGridCoverage.Snapshot
implements Comparable<DataSubset.Tile>
Information about a tile to be read. A list of
Tile is created and sorted by increasing offsets
before the read operation begins, in order to read tiles in the order they are written in the TIFF file.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longValue ofDataSubset.tileOffsetsat indexTiledGridCoverage.Snapshot.indexInTileVector.Fields inherited from class org.apache.sis.internal.storage.TiledGridCoverage.Snapshot
indexInResultArray, indexInTileVector, originX, originY -
Constructor Summary
ConstructorsConstructorDescriptionTile(TiledGridCoverage.AOI domain, Vector tileOffsets, int[] includedBanks, int numTiles) Stores information about a tile to be loaded. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(DataSubset.Tile other) Compares this tile with the specified tile for order in which to perform read operations.(package private) final voidcopyTileInfo(Vector source, long[] target, int[] includedBanks, int numTiles) CopiesDataSubset.tileOffsetsorDataSubset.tileByteCountsvalues into the given target array.Methods inherited from class org.apache.sis.internal.storage.TiledGridCoverage.Snapshot
cache, getRegionInsideTile
-
Field Details
-
byteOffset
private final long byteOffsetValue ofDataSubset.tileOffsetsat indexTiledGridCoverage.Snapshot.indexInTileVector. If pixel data are stored in different planes ("banks" in Java2D terminology), then current implementation takes only the offset of the first bank to read. This field contains the value that we want in increasing order.- See Also:
-
-
Constructor Details
-
Tile
Tile(TiledGridCoverage.AOI domain, Vector tileOffsets, int[] includedBanks, int numTiles) Stores information about a tile to be loaded.- Parameters:
iterator- the iterator for which to create a snapshot of its current position.
-
-
Method Details
-
copyTileInfo
CopiesDataSubset.tileOffsetsorDataSubset.tileByteCountsvalues into the given target array. Values for different planes ("banks" in Java2D terminology) are packed as consecutive values in the given target array.- Parameters:
source-DataSubset.tileOffsetsorDataSubset.tileByteCounts.target- the array where to copy vector values.numTiles- value ofDataSubset.numTiles.
-
compareTo
Compares this tile with the specified tile for order in which to perform read operations.- Specified by:
compareToin interfaceComparable<DataSubset.Tile>
-