PIL and GeoTIFF

M

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.

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
 
K

Khalid Zuberi

Matt said:
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
 
M

Matt Feinstein

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/

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,241
Messages
2,571,219
Members
47,851
Latest member
TheoChestn

Latest Threads

Top