Fri, 8 Sep 2000 05:13:56 -0500
I've been pythoning for over a year now, but haven't used PIL until
just recently. I have a question -- has anyone successfully used
GeoTIFF with PIL? I have tried to read .tif files for USGS DRGs,
which are GeoTIFF, but they don't work properly:
>>> print ima.format,ima.size,ima.mode
TIFF (5419, 6804) P
Traceback (innermost last):
File "<pyshell#18>", line 1, in ?
File "C:\Program Files\Python\Lib\Pil\Image.py", line 694, in show
_showxv(self, title, command)
File "C:\Program Files\Python\Lib\Pil\Image.py", line 972, in
file = self.convert(base)._dump(format=format)
File "C:\Program Files\Python\Lib\Pil\Image.py", line 415, in
im = self.im.convert(mode, dither)
[NOTE: Same thing happens in Linux-Mandrake 7.1]
Any ideas? I know that GeoTIFF adds some attributes to the TIFF
file, so that may be breaking it.
THANKS for any advice.