[Gdal-dev] SWIG / TestCapability / Ruby

Frank Warmerdam warmerdam at pobox.com
Sat Oct 1 17:37:40 EDT 2005


On 10/1/05, Ari Jolma <ari.jolma at tkk.fi> wrote:
> Charlie Savage kirjoitti:
>
> >
> > I would like to change the SWIG wrapper code so that all the
> > testcapability methods return booleans.  I think this is ok, since the
> > bindings are built using SWIG's C++ mode, so boolean is a supported
> > data type.  That way I don't have to put in a separate mapping for
> > these methods just in the Ruby bindings.
>
>
> Seems ok to me also. Note that there might be other methods too subject
> to this change, e.g. int GDALDataTypeIsComplex( GDALDataType ); in gdal.i

Guys,

I think this is a reasonable idea too.  Note that I deliberately avoid
use of the boolean type in my code due to nightmares in the past
with generically named boolean types and conflicts in their
definition in different packages.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list