[Gdal-dev] Calling GDAL functions in IDL

Norman Vine nhv at cape.com
Mon Jul 12 16:28:27 EDT 2004


Gagan Tandon writes:
>
> Hi all,
> I am writing a lidar analysis software in IDL (Interactive data language). 
> I am interested in using GDAL for some analysis purpose. 
> Therefore, I would like to use GDAL functions in IDL. 
> For example, I wish to use the function LoadFile in gdalnumeric. 
> How do I call that in IDL? 
> What I may have to do to allow calling the GDAL functions through an IDL interpreter. 
> Do I have to register the gdal11.dll or write a wrapper etc ?
>  Any sample code/links would be helpful.

I don't know how or if it even possible to link Python with IDL,
please note that gdalnumeric is a Python extension.

IDL and Python Numeric have a similar syntax and perhaps
you would find it easiest to just write your routines in Python

This page is a summary of the mapping between IDL and numarray
commands
http://www.johnny-lin.com/cdat_tips/tips_array/idl2num.html

HTH

Norman




More information about the Gdal-dev mailing list