geotiff.js
    Preparing search index...

    Function fromFile

    • Construct a GeoTIFF from a local file path. This uses the node [filesystem API]https://nodejs.org/api/fs.html and is not available on browsers.

      N.B. After the GeoTIFF has been completely processed it needs to be closed but only if it has been constructed from a file.

      Parameters

      • path: string

        The file path to read from.

      • Optionalsignal: AbortSignal

        An AbortSignal that may be signalled if the request is to be aborted

      Returns Promise<GeoTIFF>

      The resulting GeoTIFF file.