loaders.gl
loaders.gl copied to clipboard
Error loading large laz files
Hi, I have an LAZ file of 400 MB, and I am trying to load it, but I am getting an error.
Error: OOM Failed to open file: undefined
const response = await fetch('/cloud_merged.laz');
const arrayBuffer = await response.arrayBuffer();
const data = await parse(arrayBuffer, LASLoader, { las : {skip : 10}, worker: true, reuseWorkers: false });
Also tried using the LoadInBatches. Kept getting the same error. I'm on version 4.3.3 If you have any idea on how to proceed working with large files, I would also appreciate you pointing me in the right direction.
Note: I tried using a small file; it worked with no issues.
A 400mb LAZ file fully uncompressed is likely to take more than 2gb of memory.
Yeah, loading the file at once caused the issue. Any other way to stream the file? I've started using Cesium Loader with their server itself, and it works, but it costs a lot of money in the long run.
copc.io