georaster-to-canvas

Converts a GeoRaster into a Canvas

Usage no npm install needed!

<script type="module">
  import georasterToCanvas from 'https://cdn.skypack.dev/georaster-to-canvas';
</script>

README

georaster-to-canvas

Converts a GeoRaster into a Canvas

usage

const geoblaze = require("geoblaze");
const toCanvas = require("georaster-to-canvas");
const url = "https://s3.amazonaws.com/geoblaze/wildfires.tiff";
geoblaze.load(url).then(georaster => {
  const canvas = toCanvas(georaster, { height: 500, width: 500 });
});