geotiff.js
geotiff.js copied to clipboard
writeArrayBuffer missing from npm
I guess this might be because it is marked as beta in the doc, but the npm package seems to omit the writeArrayBuffer function. I can see it browsing the code here, but when I try and repeat the documented example it is missing:
const G = require('geotiff');
console.log(g)
G.writeArrayBuffer(...). <-- undefined
Output of log:
{ GeoTIFF: [Getter],
MultiGeoTIFF: [Getter],
fromUrl: [Getter],
fromArrayBuffer: [Getter],
fromFile: [Getter],
fromBlob: [Getter],
fromUrls: [Getter],
Pool: [Getter] }
Hi @pastcompute
Thanks for your interest! Yes, currently there is no release yet that includes the GeoTIFF write support. I will draft one soon, but until then, you can install from the latest master:
npm install -S geotiffjs/geotiff.js#master
I hope that helps and sorry for the inconvenience!
Hi @constantinius this didn't work, it just installed the source without building dist/
I've made a PR which fixes this behaviour, I've only been able to test with a branch URL in package.json
of course