georaster
Version:
Wrapper around Georeferenced Rasters like GeoTIFF, NetCDF, JPG, and PNG that provides a standard interface
19 lines (18 loc) • 505 B
HTML
<html>
<head>
<script src="../dist/georaster.browser.bundle.js"></script>
</head>
<body>
<div id="container"></div>
<script>
const url = "https://geotiff.github.io/georaster/data/GeogToWGS84GeoKey5.tif";
fetch(url)
.then(response => response.arrayBuffer() )
.then(parseGeoraster)
.then(georaster => {
document.getElementById('container').textContent = JSON.stringify(georaster);
});
</script>
</body>
</html>