GeoTIFF / georaster

Wrapper around Georeferenced Rasters like GeoTIFF and soon JPG and PNG that provides a standard interface
Apache License 2.0
81 stars 32 forks source link

Parse Georaster back to ArrayBuffer #63

Open hoetmaaiers opened 2 years ago

hoetmaaiers commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

hoetmaaiers commented 2 years ago

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).