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> &nbsp; void GetBlockSize(int *blockXSize, int *blockYSize){
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GDALGetBlockSize(self, blockXSize, blockYSize);<br> &nbsp; }<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> &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; 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>&gt; Dear Mr Warmerdam,<br>&gt; Could you please update the Band.i interface resulting from our<br>&gt; discussions (between me, you and Mr. Charlie Savage)?<br>&gt;<br>&gt; The section which needs to be updated is:
<br>&gt; -----------------------------------------------------------------------------------------<br>&gt;<br>&gt; %apply (int *OUTPUT){int *blockXSize, int *blockYSize}<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;void GetBlockSize(int *blockXSize, int *blockYSize){
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GDALGetBlockSize(self, blockXSize, blockYSize);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&gt; %clear (int *blockXSize, int *blockYSize);<br>&gt; -----------------------------------------------------------------------------------------
<br>&gt;<br>&gt; instead of the actual version:<br>&gt; ----------------------------------------------------------------------------------------<br>&gt;<br>&gt; void GetBlockSize(int *OUTPUT, int *OUTPUT){<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GDALGetBlockSize(self, blockXSize, blockYSize);
<br>&gt;&nbsp;&nbsp; }<br>&gt; -----------------------------------------------------------------------------------------<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>&nbsp;&nbsp; void GetBlockSize(int *pnBlockXSize, int *pnBlockYSize) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GDALGetBlockSize(self, pnBlockXSize, pnBlockYSize);<br>&nbsp;&nbsp; }<br><br>
Things now at least build, though the test suite does not use this<br>method.&nbsp;&nbsp;I'd appreciate your verifying that this is working.<br><br>I apologize for not dealing with this sooner.&nbsp;&nbsp;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&nbsp;&nbsp; | 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&nbsp;&nbsp;&nbsp;&nbsp;| President OSGF, <a href="http://osgeo.org">http://osgeo.org
</a><br><br></blockquote></div>