How to use the geoblaze.mode function in geoblaze

To help you get started, we’ve selected a few geoblaze examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GeoTIFF / geotiff.io / src / components / tools / mode / mode.container.js View on Github external
const calculateMode = (raster, coors) => {
  const modes = geoblaze.mode(raster, coors);
  return modes.map(band => {
    if (typeof band === 'number') return band;
    return band.join(", ");
  });
}