telus-agcg / ffi-gdal

MIT License
80 stars 1 forks source link

Driver#create_dataset on GTiffs can crash when using compression #5

Open turboladen opened 3 years ago

turboladen commented 3 years ago

@JasonG-Agrian is seeing occasional crashes when running tests that use a dataset that was created using LZW compression. Turns out things crash when using most types of compression. Also I see crashes go away when removing the photometric: 'PALETTE' option on the create_dataset call (Jason is using that option too).

Old JIRA ticket: DEV-410

turboladen commented 3 years ago

Comment from @JasonG-Agrian on the old JIRA ticket:

Removing the photometric: and compress: options from the TIFF driver does seem to avoid this issue altogether. Thanks for the tip!

Not sure how much of an impact compression may have on us in the future, but I'd say it could be at least 25% reduction in the cached file sizes. Let me know when you work out the issues and I'll give it another shot. Thanks!