Closed DanielJDufour closed 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.
Sounds great. Thanks for merging it in so quickly!
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.