Skip to main content

Raster module

GeoTIFF and OME-TIFF

The GeoTIFF module handles georeferencing, tiled imagery, multiband data, and multiscale OME-TIFF. Its source APIs can select native windows and overviews before decoding the pixels.

GeoTIFF raster source example

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.

boundsbandsoverviews

02 · select

Select a raster window

Use the coordinate system and resolution that match the request.

bboxoverviewband

03 · application result

Typed raster result

Pixels, dimensions, transform, and CRS stay available to the application. ↗

pixelstransformCRS

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

Status: ExperimentalScan supported

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 / SourceDescription
GeoTIFFLoaderLoads georeferenced GeoTIFF images.
GeoTIFFRasterLoaderLoads original typed numeric bands and per-image / per-band metadata for geoid grids and scientific rasters.
GeoTIFFLoaderProvides viewport-driven access to geospatial raster data.
OMETiffLoaderProvides typed non-geospatial OME-TIFF planes selected by level, time, z, and channel.

Additional APIs​

  • GeoTIFFLoader returns RasterData payloads for viewport requests.
  • OMETiffLoader returns 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.