<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.5700.6" name=GENERATOR>
<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
 /* Page Definitions */
 @page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana color=#0000ff size=2>Hi,<FONT color=#000000>Tamas 
</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>I have read this mail today, and have download 
the GDAL_CSharp.zip <FONT size=3>C# bindings from <A 
href="http://article.gmane.org/gmane.comp.gis.gdal.devel/6177">http://article.gmane.org/gmane.comp.gis.gdal.devel/6177</A>&nbsp;.</FONT></FONT></DIV>
<DIV><FONT face=Verdana>but it is posted"Date: 2006-01-09 02:33:03 GMT (45 
weeks, 6 days and 56 minutes ago)<BR>".so i want to find the latest version, 
where can i find it.</FONT></DIV>
<DIV><FONT face=Verdana>thinks your work!</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT face=Verdana size=2>贠建明</FONT></DIV>
<DIV><FONT face=Verdana size=2>2006-11-26</FONT></FONT></DIV></DIV>
<DIV><FONT face=Verdana size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发件人:</STRONG> Tamas 
Szekeres</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发送时间:</STRONG> 
2006-11-19&nbsp;04:32:51</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>收件人:</STRONG> Simon 
Perkins</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>抄送:</STRONG> 
gdal-dev@lists.maptools.org; MIKAH JAMES TRENT</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>主题:</STRONG> Re: [Gdal-dev] Re: 
your GDAL in C#</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>
<DIV>It&nbsp;would&nbsp;be&nbsp;considerable&nbsp;to&nbsp;use&nbsp;the&nbsp;GDAL&nbsp;SWIG&nbsp;C#&nbsp;interface&nbsp;since&nbsp;it</DIV>
<DIV>seems&nbsp;to&nbsp;be&nbsp;easier&nbsp;to&nbsp;support&nbsp;along&nbsp;with&nbsp;the&nbsp;evolution&nbsp;of&nbsp;the&nbsp;GDAL</DIV>
<DIV>core.&nbsp;We&nbsp;are&nbsp;planning&nbsp;to&nbsp;expose&nbsp;most&nbsp;of&nbsp;the&nbsp;required&nbsp;functionality&nbsp;for</DIV>
<DIV>the&nbsp;next&nbsp;release.</DIV>
<DIV>&nbsp;</DIV>
<DIV>However&nbsp;if&nbsp;you&nbsp;decide&nbsp;to&nbsp;use&nbsp;this&nbsp;interface&nbsp;feel&nbsp;free&nbsp;to&nbsp;share&nbsp;your</DIV>
<DIV>experiences&nbsp;and&nbsp;help&nbsp;us&nbsp;to&nbsp;discover&nbsp;the&nbsp;missing&nbsp;but&nbsp;required</DIV>
<DIV>functionalities&nbsp;and&nbsp;the&nbsp;possible&nbsp;problems.&nbsp;So&nbsp;as&nbsp;to&nbsp;collect&nbsp;these</DIV>
<DIV>problems&nbsp;we&nbsp;have&nbsp;also&nbsp;created&nbsp;a&nbsp;bugzilla&nbsp;component&nbsp;dedicated</DIV>
<DIV>exclusively&nbsp;to&nbsp;the&nbsp;C#&nbsp;interface.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best&nbsp;Regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Tamas&nbsp;Szekeres</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>2006/11/17,&nbsp;Simon&nbsp;Perkins&nbsp; &lt;sy@perkins.net &gt;:</DIV>
<DIV>&gt;&nbsp;It's&nbsp;been&nbsp;a&nbsp;while&nbsp;since&nbsp;I&nbsp;looked&nbsp;at&nbsp;that&nbsp;code&nbsp;-&nbsp;the&nbsp;standard&nbsp;thing&nbsp;to&nbsp;do</DIV>
<DIV>&gt;&nbsp;now&nbsp;is&nbsp;to&nbsp;migrate&nbsp;to&nbsp;using&nbsp;the&nbsp;SWIG&nbsp;generated&nbsp;C#&nbsp;bindings,&nbsp;though&nbsp;those</DIV>
<DIV>&gt;&nbsp;are&nbsp;far&nbsp;from&nbsp;complete.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;OK,&nbsp;just&nbsp;looked&nbsp;at&nbsp;the&nbsp;code.&nbsp;GDALGetMetadaExt()&nbsp;is&nbsp;the&nbsp;declaration&nbsp;of</DIV>
<DIV>&gt;&nbsp;the&nbsp;external&nbsp;(to&nbsp;C#)&nbsp;native&nbsp;GDAL&nbsp;function&nbsp;GDALGetMetadata(),&nbsp;that&nbsp;uses</DIV>
<DIV>&gt;&nbsp;raw&nbsp;strings&nbsp;and&nbsp;pointers&nbsp;and&nbsp;so&nbsp;forth.&nbsp;However,&nbsp;to&nbsp;make&nbsp;the&nbsp;function</DIV>
<DIV>&gt;&nbsp;easier&nbsp;from&nbsp;C#,&nbsp;the&nbsp;C#&nbsp;GDALGetMetadata()&nbsp;function&nbsp;has&nbsp;an&nbsp;API&nbsp;that&nbsp;uses&nbsp;a</DIV>
<DIV>&gt;&nbsp;Dictionary&nbsp;object.&nbsp;The&nbsp;C#&nbsp;GDALGetMetadata()&nbsp;method&nbsp;simply&nbsp;calls</DIV>
<DIV>&gt;&nbsp;GDALGetMetadataExt()&nbsp;to&nbsp;do&nbsp;the&nbsp;work,&nbsp;which&nbsp;in&nbsp;turn&nbsp;calls&nbsp;the&nbsp;underlying</DIV>
<DIV>&gt;&nbsp;GDAL&nbsp;function.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;If&nbsp;you're&nbsp;getting&nbsp;zeros,&nbsp;I&nbsp;would&nbsp;check&nbsp;that&nbsp;you&nbsp;can&nbsp;use&nbsp;GDAL&nbsp;withe&nbsp;the</DIV>
<DIV>&gt;&nbsp;C++&nbsp;API&nbsp;first.&nbsp;Note&nbsp;that&nbsp;most&nbsp;file&nbsp;formats&nbsp;don't&nbsp;support&nbsp;metadata&nbsp;and</DIV>
<DIV>&gt;&nbsp;will&nbsp;silently&nbsp;return&nbsp;null&nbsp;pointers.&nbsp;The&nbsp;"domain"&nbsp;flag&nbsp;should&nbsp;generally</DIV>
<DIV>&gt;&nbsp;be&nbsp;null&nbsp;-&nbsp;it&nbsp;allows&nbsp;different&nbsp;metadata&nbsp;namespaces&nbsp;to&nbsp;be&nbsp;set&nbsp;up&nbsp;but&nbsp;I</DIV>
<DIV>&gt;&nbsp;don't&nbsp;think&nbsp;any&nbsp;formats&nbsp;support&nbsp;that.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;BTW,&nbsp;the&nbsp;gdal-dev&nbsp;list&nbsp;is&nbsp;the&nbsp;place&nbsp;to&nbsp;ask&nbsp;questions&nbsp;like&nbsp;this.&nbsp;I've</DIV>
<DIV>&gt;&nbsp;copied&nbsp;the&nbsp;list&nbsp;with&nbsp;my&nbsp;answer,&nbsp;for&nbsp;the&nbsp;record.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;Cheers,</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;Sy</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;MIKAH&nbsp;JAMES&nbsp;TRENT&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp; &gt;&nbsp;Hi&nbsp;Simon,</DIV>
<DIV>&gt;&nbsp; 
&gt;&nbsp;I&nbsp;am&nbsp;working&nbsp;with&nbsp;the&nbsp;UW-Madison&nbsp;ecology&nbsp;labs&nbsp;as&nbsp;a&nbsp;student&nbsp;programmer.&nbsp;&nbsp;I&nbsp;am&nbsp;trying&nbsp;to&nbsp;use&nbsp;your&nbsp;C#&nbsp;code&nbsp;that&nbsp;you&nbsp;posted&nbsp;on</DIV>
<DIV>&gt;&nbsp; &gt;</DIV>
<DIV>&gt;&nbsp; &gt;&nbsp;<A 
href="http://article.gmane.org/gmane.comp.gis.gdal.devel/6177">http://article.gmane.org/gmane.comp.gis.gdal.devel/6177</A></DIV>
<DIV>&gt;&nbsp; &gt;</DIV>
<DIV>&gt;&nbsp; 
&gt;&nbsp;to&nbsp;see&nbsp;if&nbsp;we&nbsp;can&nbsp;use&nbsp;or&nbsp;extend&nbsp;your&nbsp;C#&nbsp;wrapper&nbsp;to&nbsp;incorporate&nbsp;GDAL&nbsp;into&nbsp;our&nbsp;own&nbsp;projects&nbsp;(see&nbsp;<A 
href="http://www.landis.forest.wisc.edu)">http://www.landis.forest.wisc.edu)</A>.</DIV>
<DIV>&gt;&nbsp; &gt;</DIV>
<DIV>&gt;&nbsp; 
&gt;&nbsp;Could&nbsp;you&nbsp;help&nbsp;me&nbsp;understand&nbsp;what&nbsp;the&nbsp;function&nbsp;"GDALGetMetadataExt"&nbsp;does,&nbsp;or&nbsp;maybe&nbsp;just&nbsp;point&nbsp;me&nbsp;to&nbsp;where&nbsp;it&nbsp;is&nbsp;defined??&nbsp;&nbsp;The&nbsp;following&nbsp;line&nbsp;of&nbsp;code&nbsp;(from&nbsp;InterOp.cs,&nbsp;in&nbsp;your&nbsp;function&nbsp;GDALGetMetaData):</DIV>
<DIV>&gt;&nbsp; &gt;</DIV>
<DIV>&gt;&nbsp; 
&gt;&nbsp;void**&nbsp;stringList&nbsp;=&nbsp;(void**)&nbsp;GDALGetMetadataExt(hDataset,&nbsp;domain);</DIV>
<DIV>&gt;&nbsp; &gt;</DIV>
<DIV>&gt;&nbsp; 
&gt;&nbsp;always&nbsp;returns&nbsp;0&nbsp;for&nbsp;me,&nbsp;even&nbsp;when&nbsp;I&nbsp;am&nbsp;certain&nbsp;the&nbsp;dataset&nbsp;is&nbsp;not&nbsp;empty.&nbsp;&nbsp;You&nbsp;also&nbsp;have&nbsp;'domain'&nbsp;set&nbsp;to&nbsp;"null"&nbsp;(in&nbsp;Dataset.cs)&nbsp;when&nbsp;you&nbsp;call&nbsp;GDALGetMetaData.&nbsp;&nbsp;Could&nbsp;this&nbsp;have&nbsp;something&nbsp;to&nbsp;do&nbsp;with&nbsp;it??</DIV>
<DIV>&gt;&nbsp; &gt;</DIV>
<DIV>&gt;&nbsp; 
&gt;&nbsp;I'm&nbsp;a&nbsp;little&nbsp;new&nbsp;to&nbsp;the&nbsp;whole&nbsp;system,&nbsp;so&nbsp;any&nbsp;help&nbsp;you&nbsp;could&nbsp;provide,&nbsp;even&nbsp;if&nbsp;it's&nbsp;just&nbsp;pointing&nbsp;me&nbsp;somewhere,&nbsp;would&nbsp;be&nbsp;great.&nbsp;&nbsp;Thanks&nbsp;a&nbsp;bunch,</DIV>
<DIV>&gt;&nbsp; &gt;&nbsp;-Mikah</DIV>
<DIV>&gt;&nbsp; &gt;</DIV>
<DIV>&gt;&nbsp;_______________________________________________</DIV>
<DIV>&gt;&nbsp;Gdal-dev&nbsp;mailing&nbsp;list</DIV>
<DIV>&gt;&nbsp;Gdal-dev@lists.maptools.org</DIV>
<DIV>&gt;&nbsp;<A 
href="http://lists.maptools.org/mailman/listinfo/gdal-dev">http://lists.maptools.org/mailman/listinfo/gdal-dev</A></DIV>
<DIV>&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></FONT></DIV></BODY></HTML>