New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

higuruma

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

higuruma

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

latest
npmnpm
Version
0.1.6
Version published
Weekly downloads
192
-4.95%
Maintainers
0
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 16 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts