question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Load GeoTiff from Blob

See original GitHub issue

Is your feature request related to a problem? Please describe. I’d like to show a GeoTiff that I only have available Blob (i.e. a dynamically generated GeoTiff that is returned as a result of a HTTP POST request). I see that fromBlob is available in geotiff.js so I’m wondering whether it could also be made available here.

Describe the solution you’d like Instead of passing url to the GeoTiff source, I’d like to pass a Blob, e.g. in a new parameter called blob, and display it on a Map.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mike-000commented, Jan 6, 2022

Also, MDN seems to indicate that URL.createObjectUrl was implemented in Browsers later than the FileReader that is used by geotiff.js.

I don’t think that is significant. For example, GeoTIFF needs a minimum of Chrome 45 for the workers to run. FileReader and URL.createObjectUrl were both supported long before that.

0reactions
m-mohrcommented, Mar 19, 2022

I agree, it works fine. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

With One Function, Load a GeoTIFF from an ArrayBuffer, Blob ...
With One Function, Load a GeoTIFF from an ArrayBuffer, Blob, Buffer, DataView, File or URL - GitHub - GeoTIFF/geotiff-from: With One Function, ...
Read more >
Cloud Optimized GeoTIFF (COG) from a Blob - OpenLayers
Tiled data from a Cloud Optimized GeoTIFF (COG) can be rendered as a layer. In this example, a single 3-band GeoTIFF is used...
Read more >
JSDoc: Home - geotiff.js
Home. geotiff.js. Node.js CI npm version Gitter chat. Read (geospatial) metadata and raw array data from a wide variety of different (Geo)TIFF files...
Read more >
Display GeoTIFF image in OpenLayers 6 - GIS Stack Exchange
I'm trying to display a TIFF image ...
Read more >
Get EarthEngine Image from URL to geoTIFF - python
You can't directly load a GeoTIFF from a URL through a script, but you can upload a GeoTIFF using the earthengine command line...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found