Dear Mr. Warmerdam,<br>Thank you for the update.<br><br>I quote here an useful comment of Mr. Charlie Savage.<br><br>Mr. Charlie Savage wrote:<br>.....<br>--------------------------------------------------------------------------------------------------------
<br>However, if you use %apply then you should also clear it after the<br>method is defined.<br><div style="direction: ltr;"><span class="q"><br>%apply (int *OUTPUT){int *blockXSize, int *blockYSize}<br> void GetBlockSize(int *blockXSize, int *blockYSize){
<br> GDALGetBlockSize(self, blockXSize, blockYSize);<br> }<br></span></div>%clear (int *blockXSize, int *blockYSize);<br><br>Its probably not that important in this case, but if there happened to<br>be another method with the same 2 output parameters then this typemap
<br>would be applied again (sometimes you want that, sometimes you don't).<br>--------------------------------------------------------------------------------------------------------<br><br><br><br>Best regards,<br>Daniele
<br><br><div><span class="gmail_quote">On 8/17/06, <b class="gmail_sendername">Frank Warmerdam</b> <<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Daniele Romagnoli wrote:<br>> Dear Mr Warmerdam,<br>> Could you please update the Band.i interface resulting from our<br>> discussions (between me, you and Mr. Charlie Savage)?<br>><br>> The section which needs to be updated is:
<br>> -----------------------------------------------------------------------------------------<br>><br>> %apply (int *OUTPUT){int *blockXSize, int *blockYSize}<br>> void GetBlockSize(int *blockXSize, int *blockYSize){
<br>> GDALGetBlockSize(self, blockXSize, blockYSize);<br>> }<br>> %clear (int *blockXSize, int *blockYSize);<br>> -----------------------------------------------------------------------------------------
<br>><br>> instead of the actual version:<br>> ----------------------------------------------------------------------------------------<br>><br>> void GetBlockSize(int *OUTPUT, int *OUTPUT){<br>> GDALGetBlockSize(self, blockXSize, blockYSize);
<br>> }<br>> -----------------------------------------------------------------------------------------<br><br>Daniele,<br><br>A night or two ago I noticed things weren't even building with the old<br>setup (since the name OUTPUT was used twice I suppose), so I changed it to
<br>this:<br><br>%apply (int *OUTPUT){int *pnBlockXSize, int *pnBlockYSize}<br><br> void GetBlockSize(int *pnBlockXSize, int *pnBlockYSize) {<br> GDALGetBlockSize(self, pnBlockXSize, pnBlockYSize);<br> }<br><br>
Things now at least build, though the test suite does not use this<br>method. I'd appreciate your verifying that this is working.<br><br>I apologize for not dealing with this sooner. I kind of got lost in<br>the exchange between you and Charlie.
<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com
</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush | President OSGF, <a href="http://osgeo.org">http://osgeo.org
</a><br><br></blockquote></div>