Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

writeArrayBuffer missing from npm #91

Open
pastcompute opened this issue May 6, 2019 · 2 comments
Open

writeArrayBuffer missing from npm #91

pastcompute opened this issue May 6, 2019 · 2 comments

Comments

@pastcompute
Copy link
Contributor

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] }
@constantinius
Copy link
Member

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!

@pastcompute
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants