in reply to Geotiffs and GTK2

AFAIK GeoTiffs are just regular TIFFs with additional data about coordinates and projection. In other words, any tool that can display TIFFs can display GeoTIFFs. It only gets interesting when you want to do something with the geo metadata. I've used gdalinfo to get at the metadata to stitch together bundles of GeoTIFFs using image-magick & GD. If you need to convert to different projections you may need something more specialized. update: see also the rest of the GDAL site for command line tools that handle and convert all kinds of geospatial file formats.

Replies are listed 'Best First'.
Re^2: Geotiffs and GTK2
by deadpickle (Pilgrim) on May 15, 2008 at 23:20 UTC
    is gdal coded in C? if it is how do you interpret it into perl? I have found a module called Geo-GDAL but it is still a beta version but it might be useful.
      GDAL is coded in C (or maybe C++, I'm not sure). What I meant was I just used the output of the command line program gdalinfo to get at the coordinates (using the `` operator).

      Doing that means incurring some overhead, but since you can cache the results you really only have to do /whatever you need to do/ once per image, so usually you don't care*.

      Besides, if you need to, it's probably relatively easy to write XS extensions using the GDAL library. I just didn't have to. I wrote some pretty extensive interfaces to geos though.

      * or at least, not if you've got about two hundred images, all about 10Mb+ in size. The overhead of starting a separate process and filtering its output will be dwarfed by the disk IO.