Companion

object Companion

Functions

Link copied to clipboard
fun create(dataset: GeoTiffDataset, displayName: String = DEFAULT_NAME): GeoTiffImageLayer

Build a layer over an already-open dataset.

fun create(source: TiffDataSource, displayName: String = DEFAULT_NAME): GeoTiffImageLayer?

Build a layer over source. Returns null when the bytes aren't a GeoTIFF the engine can read or georeference — the reason is logged. On success the layer owns source and closes it in close.

Link copied to clipboard
fun GeoTiffImageLayer.Companion.create(file: File, displayName: String = file.name): GeoTiffImageLayer?

Open a local GeoTIFF file as an image layer. Returns null when the file isn't a GeoTIFF the engine can read or georeference — the reason is logged. On success the layer owns the file handle and releases it in GeoTiffImageLayer.close.