Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
/ raster-tile-rgba Public archive
forked from watergis/terrain-rgb

This module is to get a pixel value from RasterTile by longitude and latitude.

License

Notifications You must be signed in to change notification settings

MIERUNE/raster-tile-rgba

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raster-tile-rgba

GitHub

This module is to get a pixel value from RasterTile by longitude and latitude.

Install

npm install git+https://github.com/MIERUNE/raster-tile-rgba.git

Usage

This module can be used for PNG or WEBP rastertile.

import RasterTileRgba from 'raster-tile-rgba';

const rtRgba = new RasterTileRgba(
    'https://disaportal.gsi.go.jp/data/raster/01_flood_l2_shinsuishin/{z}/{x}/{y}.png',
);
const rgba = await rtRgba.getRgba([139.363375, 35.354857], 17);
console.log(rgba); // [255, 216, 192, 255]

About

This module is to get a pixel value from RasterTile by longitude and latitude.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%