geotiffjs / geotiff.js

geotiff.js is a small library to parse TIFF files for visualization or analysis. It is written in pure JavaScript, and is usable in both the browser and node.js applications.
https://geotiffjs.github.io/
MIT License
861 stars 181 forks source link

Added geotiff-precise-bbox to COMMUNITY.md #280

Closed DanielJDufour closed 2 years ago

DanielJDufour commented 2 years ago

Hello. I created a library geotiff-precise-bbox to calculate the bounding box while avoiding floating-point arithmetic. There can be minor imprecisions using image.getBoundingBox() . If it makes sense, I'm happy to try to add this functionality directly into geotiff.js. Also, happy to leave it as a separate community project. Whatever makes the most sense to you :-)

Thank you for your consideration.

constantinius commented 2 years ago

Hi @DanielJDufour

Thanks for the community package! I'm amazed of the arithmetic performed directly on strings! I think that most of the times, the floating point arithmetic is precise enough, and for cases where it is not, it is fair to install the special dependency. So I think it is best to leave it as a third-party package.

DanielJDufour commented 2 years ago

Sounds great. Thanks for merging it in so quickly!