How to use georaster - 3 common examples

To help you get started, we’ve selected a few georaster 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 / geoblaze / src / raster-calculator / raster-calculator.module.js View on Github external
row.push(value);
            }
          }
        }
        values.push(row);
      }

      const metadata = _.pick(georaster, ...[
        'noDataValue',
        'projection',
        'xmin',
        'ymax',
        'pixelWidth',
        'pixelHeight'
      ]);
      return parseGeoraster([values], metadata).then(georaster => resolve(georaster));

    } catch(e) {
      console.error(e);
      return reject(e);
    }
  });
};
github GeoTIFF / geoblaze / src / band-arithmetic / band-arithmetic.module.js View on Github external
row.push(value);
            }
          }
        }
        values.push(row);
      }

      const metadata = _.pick(georaster, ...[
        'noDataValue',
        'projection',
        'xmin',
        'ymax',
        'pixelWidth',
        'pixelHeight'
      ]);
      return parseGeoraster([values], metadata).then(georaster => resolve(georaster));

    } catch(e) {
      console.error(e);
      return reject(e);
    }
  });
};
github GeoTIFF / geoblaze / src / load / load.module.js View on Github external
async function parseGeorasterWithErrorHandling (arrayBuffer) {
  try {
    return await parseGeoraster(arrayBuffer);
  } catch (error) {
    throw new Error(ERROR_PARSING_GEOTIFF);
  }
}

georaster

Wrapper around Georeferenced Rasters like GeoTIFF, NetCDF, JPG, and PNG that provides a standard interface

Apache-2.0
Latest version published 9 months ago

Package Health Score

58 / 100
Full package analysis

Popular georaster functions