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

Parse Georaster back to ArrayBuffer #63

Open
hoetmaaiers opened this issue Oct 27, 2021 · 3 comments
Open

Parse Georaster back to ArrayBuffer #63

hoetmaaiers opened this issue Oct 27, 2021 · 3 comments

Comments

@hoetmaaiers
Copy link

In my application I am substracting 2 Geotiffs (values) to create a difference raster. To be able to plot this difference raster on my map using Geotiff.js, I need to pasre the whole Georaster object to an array buffer.

Is this possible or should I take a different route?

@DanielJDufour
Copy link
Member

Hi, good question. I'm working on an upgrade to georaster that will hopefully make this easier, but in the meantime I would recommend calling geotiff.js' writeArrayBuffer function. Let me know if you have any questions about this function, as I wrote it :-)

@DanielJDufour
Copy link
Member

You could also consider using georaster-layer-for-leaflet if it fits your needs.

@hoetmaaiers
Copy link
Author

Thank you @DanielJDufour for letting me know this is coming up. I missed out on writearraybuffer. I already took a different solution for now, which is calculating the difference raster in numpy (server side).

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