Package noaa.coastwatch.io.tile
Interface TileSource
- All Known Implementing Classes:
NCTileSource
public interface TileSource
The
TileSource
interface is for reading individual rectangles
of data from a data source. Tiles can be read synchronously using the
readTile(noaa.coastwatch.io.tile.TilingScheme.TilePosition)
method or asynchronously using a
TileDeliveryOperation
object.- Since:
- 3.3.1
- Author:
- Peter Hollemans
-
Method Summary
Modifier and TypeMethodDescriptionGets the tiling scheme used to deliver tiles by this source.Reads the specified tile from the source.
-
Method Details
-
readTile
Reads the specified tile from the source.- Parameters:
pos
- the tile position to read.- Returns:
- the tile at the specified position.
- Throws:
IOException
- if an error occurred reading the tile data.IllegalArgumentException
- if the position tiling scheme does not match this source.- See Also:
-
getScheme
TilingScheme getScheme()Gets the tiling scheme used to deliver tiles by this source.- Returns:
- the tiling scheme.
-