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

Daniele Romagnoli dany.geotools at gmail.com
Sun Aug 6 06:41:48 EDT 2006


I have found this on Swig-1.3 Documentation, Chapter 9.1.5, Top of Page 122:

%clear Int32 *in, long *x;



Yesterday, using "%clear (int *blockXSize, int *blockYSize);" gave me an
error.
Today I'have tried again your command and it works fine. I'm sorry for my
mistake.

Best Regards,
Daniele



On 8/6/06, Charlie Savage <cfis at savagexi.com > wrote:
>
> > The right %clear directive usage is:
> > %clear int *blockXSize, int *blockYSize;
>
> You sure about that?  See line 985 in ogr.i for a counter example:
>
> %apply (int nLen, char *pBuf ) { (int len, char *bin_string)};
> %inline %{
>    OGRGeometryShadow* CreateGeometryFromWkb( int len, char *bin_string,
>                                              OSRSpatialReferenceShadow
> *reference=NULL ) {
> ...
> %}
> %clear (int len, char *bin_string);
>
>
> I think what you have means clear the typemap for parameters called
> either blockXSize *or* blockYSize, but the SWIG documentation is not
> particularly clear on the point.
>
> Charlie
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060806/7d7e305a/attachment.html


More information about the Gdal-dev mailing list