473,769 Members | 6,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Handling geoTIFF files

Hi,

I am trying to use Python to do the following:

- read in an image in geoTIFF format
- extract the tags from the file
- do something interesting with the tags

I've read about the Python Imaging Library (PIL) which seems to do
what I need with TIFF files. I was wondering if anyone knows if this
library will work with geoTIFF files or if there are any other methods
of doing what I need.

Many thanks,

Alastair.
Jul 18 '05 #1
3 7147
al**********@ya hoo.co.uk (alastair) writes:
I've read about the Python Imaging Library (PIL) which seems to do
what I need with TIFF files. I was wondering if anyone knows if this
library will work with geoTIFF files or if there are any other methods
of doing what I need.


You might want to have a look at GDAL, a library for handling geographic
raster data which comes with Python bindings: http://gdal.maptools.org/

Bernhard

--
Intevation GmbH http://intevation.de/
Skencil http://sketch.sourceforge.net/
Thuban http://thuban.intevation.org/
Jul 18 '05 #2
>You might want to have a look at GDAL, a library for handling geographic
raster data which comes with Python bindings: http://gdal.maptools.org/


GDAL is *the* thing to try. Unfortunately there aren't Python bindings for
everything. (I've been working with trying to use some Python libraries to
replicate GCP handling.) Getting started can be overwhelming too.

If you post questions here with "GDAL: " in the subject, I'll be sure to
see them. I'll try to dig up code samples for what you need.

--kyler
Jul 18 '05 #3
Hi,

Thanks for the advice so far - I've had a look at GDAL but I'm not
sure how to get started, and can't seem to find a whole lot of
information to help me.

If you can offer any advice on how to use the GDAL library in Python
that would be great (or anywhere I can find a tutorial/help).

Thanks,

Alastair.
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
8936
by: Joshua Beall | last post by:
Hi All, Up until now, I have been importing data from Excel spreadsheets into MySQL by exporting them to either .csv files, or tab-delimited .txt files, then using PHP scripts to insert each row. This works fine, but just adds another step (open xls, save as csv, then import into MySQL). I am wondering, has there been any work done on handling xls files, natively, in PHP? The files I work with are very simple; just rows of data...
3
3175
by: Michael | last post by:
X-Replace-Address Hello, I am trying to write a program at work for reading/writing files larger than 4 GB. I know that Windows supports files that big but I have not been able to get my program to write past the 4 gig boundary. Some solutions that I have tried:
2
2061
by: BrianJones | last post by:
I'm currently writing an encryption program designed to read in a file (and encrypt it) by splitting it in to 128 byte block segments and encrypting each segment iteratively. The problem is is that it works fine up to sizes of approx 8.5MB (albeit the program slows down throughout the process) and then crashes at 8.5 leaving me to have to reboot my computer (linux). Here is the pseudo-code: whilst not eof {
0
942
by: Marcin Be³za | last post by:
Hello, Please, help. I need to find a way to put/get files to/from *.bkf files (ntbackup.exe archiwes) programmatically. I'll be grateful for any help. Marcin
5
2614
by: m.topczewski | last post by:
Hello, I'm a beginner in c++, i have to write a program that will take couple of segments from one wave file, and store them in another wave file to be played back later. Here's the code i have written: #include "stdafx.h" #include <cstdlib> #include <iostream>
1
1441
by: Suyash Upadhyay | last post by:
Hello All, I am working on a project and I need to handle .doc files using C on Linux. But I am not getting any method how can I do so. Can anyone give me any idea about it. Thanx in advance.
1
1527
by: Hatty | last post by:
I am not very familiar with C++, but i need to write a patch for reading a binary file using hex editor and break it into bloks of FFF using start and end addtess and store it into a binary files.
5
6908
by: Markus Erlacher | last post by:
Hi Newsgroup, I have a problem that is not directly C#-related, but I'd like to solve it in C#. A data acquisition station generates heaps of data, which shall be transferred to a server. As the connection may be rather slow, I can't wait until the acquisition ends - and unfortunately I don't have access to the data acquisition source codes. Is there a way to transfer this data while it is being recorded? The
0
1314
by: dhoenig | last post by:
I need to parse a tiff image and get the tie points (Lat/Long coords) to place on a map. Does anyone know how to do this using C#.NET?
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.