geotiffjs / geotiff.js

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.
https://geotiffjs.github.io/
MIT License
866 stars 182 forks source link

Exceeds max_safe_integer. Precision may be lost. #405

Open salmanahmedmughal14048 opened 10 months ago

salmanahmedmughal14048 commented 10 months ago

Hi, I am testing it using large tif file of around 3 gbs. From a medical instrument of 40X zoom. But getting this error. I have another tif file of size 1 gbs and that is opening just fine.

image Any help with getting that fixed will be appreciated.

ashley-mort commented 10 months ago

Is this a cloud optimized geotiff?

If not, try converting it first: gdal_translate your.tif your_cog.tif -of COG -co COMPRESS=DEFLATE

constantinius commented 10 months ago

@salmanahmedmughal14048 Unfortunately this is not enough information for me to see what exactly is going wrong here. 3gb is beyond the 2gb size for "BigTIFF", so this may be related.

Can you provide the file somehow? On a public HTTP storage? Otherwise could you show the output of gdalinfo or tiffdump?