See Coordinate Reference Systems for raster CRS discovery, current native-CRS behavior, and the raster-warping roadmap.
Windowed raster access
Read the window that answers the question.
Raster sources use metadata before pixels: discover the layout, choose the useful window, and decode only the ranges or chunks that cover it.
01 · discover
GeoTIFF / Cloud Optimized GeoTIFF
TIFF pages and tiles carry georeferencing, bands, and overview metadata.
02 · select
Select a raster window
Use the coordinate system and resolution that match the request.
03 · application result
Typed raster result
Pixels, dimensions, transform, and CRS stay available to the application. ↗
A local file may use direct offsets; a cloud source may use HTTP ranges or object-store chunks. The application-facing selection remains the same.
The raster path
Metadata first. Pixels second.
Raster sources use georeferencing and overview metadata to choose a useful window, resolution, and band set before turning bytes into a typed result.
Formats
GeoTIFF, Cloud Optimized GeoTIFF, and OME-TIFF
Selection
Bounds, overview, bands, channels, and slices
Output
Typed raster data or renderer-oriented texture data
Metadata
CRS, geotransform, dimensions, and multiscale layout
The @loaders.gl/raster module provides loader and source support for
GeoTIFF and OME-TIFF data.
Detailed guide
Raster source and loader details
The sections below cover installation, loader and source APIs, raster windows, metadata, and scan behavior.
GeoTIFF combines georeferencing metadata with multi-band raster imagery. The module now also includes viewport-driven raster sources for typed raster access and texture-oriented rendering workflows.
Installation
npm install @loaders.gl/core @loaders.gl/raster geotiff
Loaders and Sources
GeoTIFFRasterSource also implements the shared scan metadata contract. Call
getQueryMetadata() to discover raster bands, source bounds, and available overview levels for
the source-neutral scan query panel. Pixel reads use the common raster entry point, getRaster(),
and preserve GeoTIFF/COG range access, overview selection, band selection, and typed output.
| Loader / Source | Description |
|---|---|
GeoTIFFLoader | Loads georeferenced GeoTIFF images. |
GeoTIFFRasterLoader | Loads original typed numeric bands and per-image / per-band metadata for geoid grids and scientific rasters. |
GeoTIFFLoader | Provides viewport-driven access to geospatial raster data. |
OMETiffLoader | Provides typed non-geospatial OME-TIFF planes selected by level, time, z, and channel. |
Additional APIs
GeoTIFFLoaderreturnsRasterDatapayloads for viewport requests.OMETiffLoaderreturns typed OME-TIFF planes for non-geospatial image pyramids.
Attributions
This module imports and wraps geotiff.js under MIT license.
The original TIFF decoder core handles supported numeric files and retains geotiff.js compatibility fallback.
The geotiff decoder is an optional peer dependency. See the raster package for parser entry points and source constructors.