in reply to Re: Geotiffs and GTK2
in thread Geotiffs and GTK2

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.

Replies are listed 'Best First'.
Re^3: Geotiffs and GTK2
by Joost (Canon) on May 18, 2008 at 00:32 UTC
    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.