FileTiffDataSource

class FileTiffDataSource(file: File) : TiffDataSource

TiffDataSource over a local file, read through a RandomAccessFile so a tiled GeoTIFF is paged block by block instead of loaded whole — the point of the format for rasters that don't fit in memory.

Reads are serialized on the shared file handle, which is what makes the source safe to hand to concurrently decoding tiles.

Constructors

Link copied to clipboard
constructor(file: File)

Properties

Link copied to clipboard
open override val size: Long

Total byte length of the container.

Functions

Link copied to clipboard
open override fun close()

Release the underlying handle. Idempotent; no-op by default.

Link copied to clipboard
open override fun read(offset: Long, length: Int): ByteArray

Read up to length bytes starting at offset.

Link copied to clipboard
open override fun toString(): String