[Image-SIG] GeoTIFF?
vic@k-creations.com
vic@k-creations.com
Fri, 8 Sep 2000 05:13:56 -0500
Hello Everyone,
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:
r>>> ima=Image.open('d:\\data\\python\\src\\drg\\test.tif')
>>> print ima.format,ima.size,ima.mode
TIFF (5419, 6804) P
>>> ima.show()
Traceback (innermost last):
File "<pyshell#18>", line 1, in ?
ima.show()
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
_showxv
file = self.convert(base)._dump(format=format)
File "C:\Program Files\Python\Lib\Pil\Image.py", line 415, in
convert
im = self.im.convert(mode, dither)
MemoryError:
[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.
Vic Kelson