Daniel J. Dufour
Daniel J. Dufour
I ran into this issue as well. I use geotiff as a nested dependency in [geomask](https://github.com/danieljdufour/geomask). It's far from a workaround for general use, but I got around this issue...
I published the code above in its own npm module (https://github.com/DanielJDufour/require-esm-as-empty-object), so you can do: ```node -r require-esm-as-empty-object app.js```
@twelch , that's a great suggestion. I haven't tried it yet, but that would be a awesome :-) fwiw, I'm running into the same error when I'm running ts-node.
I like @twelch 's solutions, but if you want a quick bandaid to get things working in test (but not production), I published [require-esm-deasync](https://github.com/DanielJDufour/require-esm-deasync), which you can use to get...
I'm using it here: https://github.com/GeoTIFF/geotiff-precise-bbox/blob/main/package.json#L18 ```json "test": "node -r require-esm-deasync ./test.js", ```
Hi @PBrockmann, I love the idea of a separate repo for an olGeoTIFF.js layer that people can use in their own OL projects. We've talked about maybe moving https://geotiff.io to...
Hi, @mutantNeko . How would you like to use the geotiff.js library? There is no `start` script to run and that's okay. There isn't supposed to be one. geotiff.js is...
Hi, @mutantNeko . That sounds very interesting! I would recommend checking out [georaster-layer-for-leaflet](https://github.com/GeoTIFF/georaster-layer-for-leaflet). It's a simple library that display raster files (including GeoTIFF's) on a leaflet map. It uses geotiff.js....
Hi, @codesian . Great question. I'll change the code right now to export the `get` and `intersectPolygon` functions and republish. I'll update this issue when that is complete.