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.
EDIT: I also fixed the failing tests. They seem to be failing because the CI / Github Actions is taking a long time for two tests (doesn't happen on a laptop). I bumped up the timeout just enough so they pass. Let me know if you want me to put that in a separate PR.
I'm sorry I didn't get this right the first time, but here's some updates to the GeoTIFF writing.
removed unnecessary default tags
remove assumption that we are writing a geographic coordinate system (vs. a projected coordinate system)
automatically construct GeoAsciiParams from available ASCII GeoKey Tags
added some missing field tag types
don't check for GTRasterTypeGeoKey in tests, because it's no longer a default and isn't required by QGIS (and I assume other desktop software and cloud services). georaster-layer-for-leaflet certainly doesn't require it.
I'd love to say that this will be the last update to the tags, but I'll probably have more PR's/updates in the future as more cases are discovered. Thank you for your consideration!
EDIT: I also fixed the failing tests. They seem to be failing because the CI / Github Actions is taking a long time for two tests (doesn't happen on a laptop). I bumped up the timeout just enough so they pass. Let me know if you want me to put that in a separate PR.
I'm sorry I didn't get this right the first time, but here's some updates to the GeoTIFF writing.
I'd love to say that this will be the last update to the tags, but I'll probably have more PR's/updates in the future as more cases are discovered. Thank you for your consideration!