GeoTIFF, numeric TIFF, OME-TIFF, LERC, image-encoded terrain, and quantized mesh.
npm install @loaders.gl/core @loaders.gl/raster
The root exports metadata loaders. Asynchronous load() and parse() load their implementations
through preload(). Synchronous parsing requires a parser-bearing format entry point:
import {parse, parseSync} from '@loaders.gl/core';
import {GeoTIFFRasterLoader, QuantizedMeshLoader} from '@loaders.gl/raster';
import {QuantizedMeshLoaderWithParser} from '@loaders.gl/raster/quantized-mesh';
const raster = await parse(tiffBytes, GeoTIFFRasterLoader);
const terrain = parseSync(terrainBytes, QuantizedMeshLoaderWithParser);
Format entry points
| Logo | Entry point | Implementation |
|---|
OGCGeoTIFF | @loaders.gl/raster/geotiff | GeoTIFF image and numeric raster parsers |
| — | @loaders.gl/raster/lerc | LERC parser |
| — | @loaders.gl/raster/terrain | Image-encoded elevation to terrain mesh |
| — | @loaders.gl/raster/quantized-mesh | Quantized mesh parser |
| — | @loaders.gl/raster/terrain/heightmap | Heightmap decoding, sampling, and surface helpers |
OGCGeoTIFF | @loaders.gl/raster/geotiff | Synchronous GeoTIFF/COG source constructor |
OGCGeoTIFF | @loaders.gl/raster/geotiff | Synchronous OME-TIFF source constructor |
GeoTIFF and OME-TIFF source metadata is available from the root. Use asynchronous createDataSource()
with metadata or import an explicit source implementation for synchronous createDataSourceSync().
Use the named source, discovery, and heightmap subpaths for advanced APIs; their references list the exported constructors and helpers.
Optional decoder packages
Install geotiff for the GeoTIFF image parser, GeoTIFF/COG source, and OME-TIFF source:
The native numeric GeoTIFFRasterLoader defaults to its built-in decoder. Install geotiff
when explicitly selecting the geotiff backend or when automatic decoding falls back to it.
Use geotiff: {decoder: 'native'} to require native decoding without a compatibility fallback.
Install lerc for LERCLoader:
Both engines are optional peer dependencies. Terrain and quantized mesh do not require them.
LERC's WASM is shipped at @loaders.gl/raster/lerc/lerc-wasm.wasm.
Terrain workers are shipped at @loaders.gl/raster/terrain-worker.js and
@loaders.gl/raster/quantized-mesh-worker.js.
The standalone GeoTIFF, LERC, and terrain packages have been removed. Loader IDs, format option
names, default output shapes, and writer behavior are preserved; loader module is now raster.
Sources and credits
See the package source and license inventory
and the project-wide Attributions and Credits.
Package exports
All exported subpaths (44)
These are the package's public exports, including format entry points, parsers, writers, sources, and worker assets.
| Format | Import subpath |
|---|
OGCGeoTIFF | @loaders.gl/raster/geotiff |
OGCGeoTIFF | @loaders.gl/raster/geotiff/bundled |
OGCGeoTIFF | @loaders.gl/raster/geotiff/discover-geotiff |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/load-geotiff |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/ome/load-ome-tiff |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/ome/ome-indexers |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/ome/ome-utils |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/ome/omexml |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/ome/utils |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff-pixel-source |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff/decode-tiff-samples |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff/geotiff-decoder-adapter |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff/geotiff-source-adapter |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff/plan-tiff-blocks |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff/read-tiff-directory |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff/tiff-gdal-metadata |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff/tiff-metadata |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff/tiff-numeric-decoder |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff/tiff-source-decoder |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/tiff/tiff-types |
OGCGeoTIFF | @loaders.gl/raster/geotiff/lib/utils/tiff-utils |
OGCGeoTIFF | @loaders.gl/raster/geotiff/loaders |
OGCGeoTIFF | @loaders.gl/raster/geotiff/types |
| @loaders.gl/raster/lerc |
| @loaders.gl/raster/lerc-wasm-url |
| @loaders.gl/raster/lerc/bundled |
| @loaders.gl/raster/lerc/lerc-wasm.wasm |
| @loaders.gl/raster/lerc/lib/parsers/lerc/lerc-types |
| @loaders.gl/raster/quantized-mesh |
| @loaders.gl/raster/quantized-mesh-worker.js |
| @loaders.gl/raster/quantized-mesh/bundled |
| @loaders.gl/raster/terrain |
| @loaders.gl/raster/terrain-worker.js |
| @loaders.gl/raster/terrain/bundled |
| @loaders.gl/raster/terrain/heightmap |
| @loaders.gl/raster/terrain/lib/decode-quantized-mesh |
| @loaders.gl/raster/terrain/lib/decode-terrain-heightmap |
| @loaders.gl/raster/terrain/lib/delatin |
| @loaders.gl/raster/terrain/lib/helpers/skirt |
| @loaders.gl/raster/terrain/lib/parse-quantized-mesh |
| @loaders.gl/raster/terrain/lib/parse-terrain |
| @loaders.gl/raster/terrain/lib/terrain-contracts |
| @loaders.gl/raster/terrain/lib/terrain-heightmap-types |
| @loaders.gl/raster/terrain/lib/utils/version |