AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
May 2010

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2010.05.10 09:35 "Increasing the number of files loadable through libtiff", by Simon R Proud
2010.05.10 13:27 "Re: Increasing the number of files loadable through libtiff", by Edward Lam
2010.05.10 15:30 "Re: Increasing the number of files loadable through libtiff", by Simon R Proud
2010.05.10 15:51 "Re: Increasing the number of files loadable through libtiff", by Bob Friesenhahn
2010.05.10 16:17 "Re: Increasing the number of files loadable through libtiff", by Olivier Paquet
2010.05.10 19:10 "Re: Increasing the number of files loadable through libtiff", by Bob Friesenhahn
2010.05.10 20:07 "Re: Increasing the number of files loadable through libtiff", by Olivier Paquet
2010.05.10 14:01 "Re: Increasing the number of files loadable through libtiff", by Olivier Paquet

2010.05.10 13:27 "Re: Increasing the number of files loadable through libtiff", by Edward Lam

Hi Simon,

Things come to mind offhand:

- Are you careful to only read on strip at a time across all files? ie. 
Using the strip-oriented interface appropriately:
http://www.remotesensing.org/libtiff/libtiff.html#strips

- Make sure you're not holding onto memory longer than you need it.

- TIFFOpen() flags: Use "m" to disable memory mapping, and probably "C" 
to enable strip chopping. See 
http://www.remotesensing.org/libtiff/man/TIFFOpen.3tiff.html

- Examine the underlying cause of your error. Are you exceeding the 
maximum number of file handles allowed?

Regards,
-Edward

Simon R. Proud wrote:
> Hi all, some time ago I posted a thread about not being able to load
> large numbers of TIFFs using TiffOpen (
> http://www.asmail.be/msg0054686850.html ), for some reason I can't
> reply to that now. Anyway, I have now hit a similar problem again. I
> need to open a large number of TIFFs at once (totalling ~18Gb), but
> only have 16Gb of memory. Is there any way to overcome this and be
> able to open all files simultaneously? I've tried fiddling with the
> numerous TIFFOpen options ("rM", "rCm", "rcm" etc) but have had no
> luck.
> 
> I only need to read one scanline at a time (which for all files would
> total about 20Mb!), so don't see that memory for the entire file is
> required. Any ideas, assistance, etc? Apologies if this is a very
> basic query, I'm something of a novice programmer.
> 
> Thanks. Simon.
> 
> _______________________________________________ Tiff mailing list:
> Tiff@lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/tiff 
> http://www.remotesensing.org/libtiff/