JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 722
  • Score
    100M100P100Q117833F
  • License MIT

GPU-accelerated COG and Zarr visualization in deck.gl

Package Exports

  • @developmentseed/deck.gl-raster

Readme

@developmentseed/deck.gl-raster

GPU-accelerated COG and Zarr visualization in deck.gl

Features

  • πŸš€ High-performance raster visualization using WebGL
  • πŸ—ΊοΈ Support for Cloud Optimized GeoTIFF (COG)
  • πŸ“Š Support for Zarr format
  • 🎨 Customizable rendering and color mapping
  • πŸ“¦ Modern ESM package for JavaScript and TypeScript

Installation

npm install @developmentseed/deck.gl-raster

Usage

import { RasterLayer } from '@developmentseed/deck.gl-raster';
import { Deck } from '@deck.gl/core';

const layer = new RasterLayer({
  id: 'raster-layer',
  data: 'https://example.com/data.tif',
  bounds: [-122.5, 37.7, -122.3, 37.9],
});

new Deck({
  initialViewState: {
    longitude: -122.4,
    latitude: 37.8,
    zoom: 11,
  },
  controller: true,
  layers: [layer],
});

Development

# Install dependencies
npm install

# Build the library
npm run build

# Run tests
npm test

# Run tests in watch mode
npm run test:watch

# Lint code
npm run lint

# Format code
npm run format

# Type check
npm run typecheck

API Reference

RasterLayer

A deck.gl layer for rendering raster data from GeoTIFF and Zarr sources.

Props

  • data (string | URL): URL to the raster data source
  • bounds ([number, number, number, number]): Bounding box as [minLon, minLat, maxLon, maxLat]

License

MIT Β© Development Seed