geotiff.js icon indicating copy to clipboard operation
geotiff.js copied to clipboard

writeArrayBuffer missing from npm

Open pastcompute opened this issue 5 years ago • 2 comments

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] }

pastcompute avatar May 06 '19 15:05 pastcompute

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!

constantinius avatar May 06 '19 15:05 constantinius

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

pastcompute avatar May 08 '19 12:05 pastcompute