Provides data from a remote GeoTIFF file.

Features:

  • supports tiled and untiled TIFF images
  • supports Cloud Optimized GeoTIFF (COG),
  • supports various compression (LZW, DEFLATE, JPEG...)
  • supports RGB and YCbCr color spaces
  • supports grayscale (e.g elevation data) and color images,
  • support high-dynamic range colors (8-bit, 16-bit and 32-bit floating point pixels),
  • dynamic channel mapping,

Note: performance might be degraded if the GeoTIFF is not optimized for streaming. We recommend using Cloud Optimized GeoTIFFs (COGs) for best performance.

Hierarchy (view full)

Constructors

Properties

containsFn: undefined | CustomContainsFn
crs: string
datatype: TextureDataType

Gets the datatype of images generated by this source.

flipY: boolean

Gets whether images generated from this source should be flipped vertically.

isGeoTIFFSource: boolean = ...
isImageSource: boolean = true
isMemoryUsage: true = ...
synchronous: boolean = false

If true, this source can immediately generate images without any delay.

type: "GeoTIFFSource" = ...
url: string

Accessors

Methods

  • Adds a listener to an event type.

    Type Parameters

    • T extends "updated"

    Parameters

    Returns void

  • Type Parameters

    • T extends string

    Parameters

    Returns void

  • Parameters

    • requestExtent: Extent

      The request extent.

    • requestWidth: number

      The width, in pixels, of the request extent.

    • requestHeight: number

      The height, in pixels, of the request extent.

    • margin: number = 0

      The margin, in pixels.

    Returns {
        extent: Extent;
        height: number;
        width: number;
    }

    The adjusted parameters.

    • extent: Extent
    • height: number
    • width: number
  • Gets whether this source contains the specified extent. If a custom contains function is provided, it will be used. Otherwise, intersects is used.

    This method is mainly used to discard non-relevant requests (i.e don't process regions that are not relevant to this source).

    Parameters

    • extent: Extent

      The extent to test.

    Returns boolean

  • Fire an event type.

    Type Parameters

    • T extends "updated"

    Parameters

    Returns void

  • Gets the images for the specified extent and pixel size.

    Parameters

    • options: {
          extent: Extent;
          height: number;
          id: string;
          signal?: AbortSignal;
          width: number;
      }

      The options.

      • extent: Extent
      • height: number
      • id: string
      • Optional signal?: AbortSignal
      • width: number

    Returns {
        id: string;
        request: (() => Promise<ImageResult>);
    }[]

    An array containing the functions to generate the images asynchronously.

  • Checks if listener is added to an event type.

    Type Parameters

    • T extends "updated"

    Parameters

    Returns boolean

  • Type Parameters

    • T extends string

    Parameters

    Returns boolean

  • Test the intersection between the specified extent and this source's extent. This method may be overriden to perform special logic.

    Parameters

    • extent: Extent

      The extent to test.

    Returns boolean

    true if the extent and this source extent intersects, false otherwise.

  • Attemps to compute the exact extent of the TIFF image.

    Parameters

    • crs: string

      The CRS.

    • tiffImage: GeoTIFFImage

      The TIFF image.

    Returns Extent