Why are tif files so large when using geotiffwrite?
古いコメントを表示
Hello.
I use readgeoraster to read in a 25MB geotiff. I then turn around and immediately write out the data with geotiffwrite. The resultant file is now 250MB.
What is the explanation for this 10x increase in file size? The data read in are 'single' format. And that is the exact data I am writing out.
Dave
4 件のコメント
Walter Roberson
2023 年 11 月 8 日
Have you tried using a TiffTags parameter https://www.mathworks.com/help/map/ref/geotiffwrite.html#d126e71430 to set Compression to Deflate ?
david hill
2023 年 11 月 8 日
david hill
2023 年 11 月 8 日
Walter Roberson
2023 年 11 月 8 日
The compression types permitted by the code are permittedValues = {'LZW', 'PackBits', 'Deflate', 'None'};
It looks like libTiff supports a lot more than that, but geotiffwrite() puts on those restrictions.
You could experiment with LZW.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!