0.1.6 • Published 10 months ago

higuruma v0.1.6

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

Higuruma - COG Tiler on Hono

  • Hono -> Hi(火🔥)
  • Cloud Optimized GeoTIFF(COG) -> gear -> Haguruma(歯車⚙️)

motivation

  • geomatico/maplibre-cog-protocol is amazing work to consume COG on browser, maximizing performance of geotiff.js and provides utilities to colorize raster data.
  • It is also good the process to load COG and tiling them on server in terms of utilize shared cache.

usage

As Library

npm install higuruma
import { renderTile, locationValues } from 'higuruma/dist/index.esm.js'; // ES Module
// const { renderTile, locationValues } = require('higuruma/dist/index.cjs.js'); // CommonJS

const tile = await renderTile('https://path/to/cog.tif', z, x, y); // ArrayBuffer of PNG
const values = await locationValues('https://path/to/cog.tif', {latitude, longitude}); // pixel values

AWS Lambda

npm install
npm run deploy # needs credentials

endpoints

  • /tile/{z}/{x}/{y}?url=https://path/to/cog.tif: content-type is image/png
  • /values?url=https://path/to/cog.tif&lat=35.681236&lon=139.767125: return pixel value at the given lat/lon

inspired by developmentseed/titiler

acknowledgements

0.1.6

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago