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

import is not use,i have import geotiff,but when i use its function ,its not defined! #110

Closed
2496772010 opened this issue Nov 18, 2019 · 5 comments

Comments

@2496772010
Copy link

No description provided.

@constantinius
Copy link
Member

Please provide more context how you are using geotiff.js and how you are importing it

@2496772010
Copy link
Author

In webstrom,I use command 'cnpm install geotiff -save' to install geotiff.js
so I write 'import GeoTIFF from 'geotiff' to use it,
but when i code 'const tiff=await GeoTIFF.fromArrayBuffer(arrayBuffer);'
it show me error:‘Cannot read property 'fromArrayBuffer' of undefined’。

@2496772010
Copy link
Author

I don't know where my error to use it,totally,acorrding to your instruction.

@2496772010
Copy link
Author

Sorry,I have solved it.But I suggest you change your Usage in ‘import GeoTIFF from ‘geotiff’’to
‘Import * as GeoTIFF from ‘geotiff’’.

@abdul-imran
Copy link

Sorry,I have solved it.But I suggest you change your Usage in ‘import GeoTIFF from ‘geotiff’’to ‘Import * as GeoTIFF from ‘geotiff’’.

I had a similar issue. This is what worked for me

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

3 participants