Discussion:
PIL and GeoTIFF
Matt Feinstein
2005-06-09 15:41:03 UTC
Permalink
Hi all--

I've succeeded in using the PIL (Python Imaging Library) to read a
simple GeoTIFF file and to extract data from the file's GeoTIFF key--
but I'd also like to write GeoTIFFs, and there doesn't appear to be a
one-step way of doing that.

I suspect, first, that -writing- a GeoTIFF file with PIL means poking
around in the PIL TIFF plugin file which I'm a little wary of doing.
Also, I don't see any clear description in the PIL documentation on
how to add specified TIFF keys to a saved file. Any words of wisdom
about either of these questions would be much appreciated.


Matt Feinstein

--
There is no virtue in believing something that can be proved to be true.
Khalid Zuberi
2005-06-09 18:19:21 UTC
Permalink
Post by Matt Feinstein
Hi all--
I've succeeded in using the PIL (Python Imaging Library) to read a
simple GeoTIFF file and to extract data from the file's GeoTIFF key--
but I'd also like to write GeoTIFFs, and there doesn't appear to be a
one-step way of doing that.
If you are willing to go in a bit of a different direction, GDAL
supports GeoTIFF and includes python bindings:

http://www.remotesensing.org/gdal/

- kz
Matt Feinstein
2005-06-09 19:07:00 UTC
Permalink
On Thu, 09 Jun 2005 14:19:21 -0400, Khalid Zuberi <kkzuberi at yahoo.com>
Post by Khalid Zuberi
If you are willing to go in a bit of a different direction, GDAL
http://www.remotesensing.org/gdal/
Looks interesting, but kinda heavy-duty for my purposes. If a couple
of lines of Python added to what I've already got will do the job, I'd
rather do that then compile and learn yet another API.

Matt Feinstein

--
There is no virtue in believing something that can be proved to be true.
Loading...