[Gdal-dev] Re: Fwd: gdal swig interface Band.i Updated

Charlie Savage cfis at savagexi.com
Sat Aug 5 15:55:18 EDT 2006


In gdal.i add

%include "typemaps.i"

*before* the code you pasted below (so it is loaded before gdal_typemaps.i)

Charlie

Daniele Romagnoli wrote:
> gdal.i include band.i (band.i contains "our" getBlockSize method)
> 
> furthermore, gdal.i contains this code:
> 
> #if defined(SWIGPYTHON)
> %include "gdal_python.i"
> #elif defined(SWIGRUBY)
> %include "gdal_ruby.i"
> #elif defined(SWIGPHP4)
> %include "gdal_php.i"
> #elif defined(SWIGCSHARP)
> %include "gdal_csharp.i"
> #elif defined(SWIGPERL)
> %include "gdal_perl.i"
> #elif defined(SWIGJAVA)
> %include "gdal_java.i"
> #else
> %include "gdal_typemaps.i"
> #endif
> 
> 
> and gdal_java.i contains this code:
> 
> %include typemaps_java.i
> (while other languages include the proper typemaps_language.i)
> 
> This "include" mechanism should work?
> Or I explicitly need to include something else somewhere?
> 
> Thanks again.
> 
> Cheers
> Daniele
> 
> 
> On 8/5/06, *Charlie Savage* < cfis at savagexi.com 
> <mailto:cfis at savagexi.com>> wrote:
> 
>     Sorry, typemaps.i is what I meant.  I don't see it included anywhere
>     except in the csharp.i file.
> 
>     Try putting it in gdal.i instead - that will cause all languages to use
>     it.  If that works, it probably should be removed from csharp.i. And
>     added to ogr.i (not sure if there is one central .i file it go into,
>     doesn't look like it).
> 
>     Charlie
> 
>     Daniele Romagnoli wrote:
>      > I'm sorry Charlie...
>      > Please, throw away my previous email (which contains a typo)...
>      >
>      > This one is corrected:
>      > ----
>      > There is no sign of templates.i in my code (neither in the gdal
>     and swig
>      > subfolders).
>      > Furthermore, there is no trace of templates.i in the suggested
>     http link :(
>      >
>      > Maybe are you talking about typemaps.i?
>      > I'm sure that typemaps.i is included.
>      >
>      > --
>      > Best Regards,
>      > Daniele
>      >
>      > ---------- Forwarded message ----------
>      > From: *Daniele Romagnoli* < dany.geotools at gmail.com
>     <mailto:dany.geotools at gmail.com>
>      > <mailto:dany.geotools at gmail.com <mailto:dany.geotools at gmail.com>>>
>      > Date: Aug 5, 2006 8:03 PM
>      > Subject: Re: gdal swig interface Band.i Updated
>      > To: Charlie Savage < cfis at savagexi.com <mailto:cfis at savagexi.com>
>     <mailto:cfis at savagexi.com <mailto:cfis at savagexi.com>>>
>      >
>      > On 8/5/06, *Charlie Savage* <cfis at savagexi.com
>     <mailto:cfis at savagexi.com>
>      > <mailto:cfis at savagexi.com <mailto:cfis at savagexi.com>>> wrote:
>      >
>      >     Check to see if templates.i is included.
>      >
>      >     See:
>      >
>      >     http://www.swig.org/Doc1.3/Arguments.html#Arguments_nn5
>      >     <http://www.swig.org/Doc1.3/Arguments.html#Arguments_nn5>
>      >
>      >
>      >
>      > There is no sign of templates.i in my code (neither in the gdal
>     and swig
>      > subfolders).
>      > Furthermore, there is no trace of typemaps.i in the suggested
>     http link :(
>      >
>      > Maybe are you talking about typemaps.i?
>      > I'm sure that typemaps.i is included.
>      >
>      > --
>      > Best Regards,
>      > Daniele
>      >
>      >
>      >
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060805/a2990dc6/smime.bin


More information about the Gdal-dev mailing list