Class TiledGridCoverage.Snapshot
Object
TiledGridCoverage.AOI
Snapshot
- Enclosing class:
TiledGridCoverage
Snapshot of a
TiledGridCoverage.TileIterator position. Those snapshots can be created during an iteration
for processing a tile later. For example, a TiledGridCoverage.readTiles(TileIterator) method implementation
may want to create a list of all tiles to load before to start the actual reading process in order
to read the tiles in some optimal order, or for combining multiple read operations in a single operation.- Since:
- 1.7
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(TiledGridCoverage.AOI iterator) Stores information about a tile to be loaded. -
Method Summary
Modifier and TypeMethodDescriptionvoidSends to the listeners a notification that the reading of the tile identified by this snapshot started.Methods inherited from class TiledGridCoverage.AOI
cache, createRaster, getCachedTile, getRegionInsideTile, getRegionInsideTile, getTileCoordinatesInResource, getTileIndexInResource, getTileIndexInResultArray, getTileLocation, getUncroppedTileLocation, moveRasterModifier and TypeMethodDescriptionStores the given raster in the cache for the current AOI position.Creates an initially empty raster for the tile at the current AOI position.Returns the cached tile for current AOI position.getRegionInsideTile(boolean subsampled) Returns the coordinates of the pixels to read relative to the current tile's upper-left corner.booleangetRegionInsideTile(long[] lower, long[] upper, long[] subsampling, boolean subsampled) Returns the clipped coordinates of the cells to read relative to the tile's upper-left corner.final long[]Returns the current AOI position in the tile matrix of the original resource.final intReturns the current AOI position as an index in the vector of tiles of the original resource.final intReturns the current AOI position as an index in the array of tiles to be returned byTiledGridCoverage.readTiles(…).Creates the coordinates of the upper-left corner of the tile at the current AOI position.Returns the location (relative to the cropped tile) of the upper-left corner of the uncropped tile.moveRaster(Raster tile) Returns the given raster relocated at the current AOI position.
-
Field Details
-
originX
public final int originXPixel coordinates of the upper-left corner of the tile. -
originY
public final int originYPixel coordinates of the upper-left corner of the tile.
-
-
Constructor Details
-
Snapshot
Stores information about a tile to be loaded.- Parameters:
iterator- the iterator for which to create a snapshot of its current position.
-
-
Method Details
-
fireTileReadStarted
public void fireTileReadStarted()Sends to the listeners a notification that the reading of the tile identified by this snapshot started. If this event has not already been sent for this snapshot, this method creates aTileReadEventand gives this event to the resource's listeners.This event is sent only once per
Snapshotinstance. If this method is invoked more than once, the extra calls are no-operation.
-