[Gdal-dev] GDAL Java Binding generation troubles. (missing
typemap?)
Tamas Szekeres
szekerest at gmail.com
Fri Jan 12 17:48:15 EST 2007
Hi,
A typemap is missing at the java binding for the integer output
parameters. Therefore SWIG does not generate this member.
Additionally there is another missing typemap
%typemap(out) IF_ERROR_RETURN_NONE
that causes the warning, but it only affects the behaviour of the
corresponding GetStatistics method and does not affect the
getBlockSize.
Best Regards,
2007/1/12, Daniele Romagnoli <dany.geotools at gmail.com>:
> Hi list,
> I downloaded and build GDAL 1.4 from the daily CVS.
>
> Actually, the getBlockSize method is contained in the interface file band.i
> (gdal/swig/include).
> The necessary binding is also contained in the swig's generated wrapper
> gdal_wrap.cpp (gdal/swig/java).
>
> However, the produced java proxy class Band.java
> (gdal/swig/java/org/gdal/gdal) contains no binding for the getBlockSize
> method. (Maybe Swig was not correctly executed). By this way, a Java program
> cannot access to getBlockSize.
>
> Thus, I'm providing to generate JAVA SWIG wrappers but I have some trouble.
>
> When executing SWIG, it returns this error:
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Microsoft (R) Program Maintenance Utility Version 7.10.3077
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> swig -Wall -Iinclude -Iinclude/java -ID:\AllData\gdal-2007 -c++ -java -o
> gdalconst_wrap.c -package org/gdal/gdal gdal.i
> include\Band.i(215): Warning(453): Can't apply (IF_ERROR_RETURN_NONE). No
> typemaps are defined.
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
> I'm searching this text within the files of the whole swig folder but I
> cannot find the IF_ERROR_RETURN_NONE typemap.
> It is possible that IF_ERROR_RETURN_NONE was recently defined but not yet
> included in the GDAL CVS repository?
>
> Does anybody have any clues about what I'm doing wrong?
> Thank you very much
> --
> Best Regards,
> Daniele
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>
>
More information about the Gdal-dev
mailing list