<!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> </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> .</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> </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 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> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>It would be considerable to use the GDAL SWIG C# interface since it</DIV>
<DIV>seems to be easier to support along with the evolution of the GDAL</DIV>
<DIV>core. We are planning to expose most of the required functionality for</DIV>
<DIV>the next release.</DIV>
<DIV> </DIV>
<DIV>However if you decide to use this interface feel free to share your</DIV>
<DIV>experiences and help us to discover the missing but required</DIV>
<DIV>functionalities and the possible problems. So as to collect these</DIV>
<DIV>problems we have also created a bugzilla component dedicated</DIV>
<DIV>exclusively to the C# interface.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Best Regards,</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Tamas Szekeres</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>2006/11/17, Simon Perkins <sy@perkins.net >:</DIV>
<DIV>> It's been a while since I looked at that code - the standard thing to do</DIV>
<DIV>> now is to migrate to using the SWIG generated C# bindings, though those</DIV>
<DIV>> are far from complete.</DIV>
<DIV>></DIV>
<DIV>> OK, just looked at the code. GDALGetMetadaExt() is the declaration of</DIV>
<DIV>> the external (to C#) native GDAL function GDALGetMetadata(), that uses</DIV>
<DIV>> raw strings and pointers and so forth. However, to make the function</DIV>
<DIV>> easier from C#, the C# GDALGetMetadata() function has an API that uses a</DIV>
<DIV>> Dictionary object. The C# GDALGetMetadata() method simply calls</DIV>
<DIV>> GDALGetMetadataExt() to do the work, which in turn calls the underlying</DIV>
<DIV>> GDAL function.</DIV>
<DIV>></DIV>
<DIV>> If you're getting zeros, I would check that you can use GDAL withe the</DIV>
<DIV>> C++ API first. Note that most file formats don't support metadata and</DIV>
<DIV>> will silently return null pointers. The "domain" flag should generally</DIV>
<DIV>> be null - it allows different metadata namespaces to be set up but I</DIV>
<DIV>> don't think any formats support that.</DIV>
<DIV>></DIV>
<DIV>> BTW, the gdal-dev list is the place to ask questions like this. I've</DIV>
<DIV>> copied the list with my answer, for the record.</DIV>
<DIV>></DIV>
<DIV>> Cheers,</DIV>
<DIV>></DIV>
<DIV>> Sy</DIV>
<DIV>></DIV>
<DIV>> MIKAH JAMES TRENT wrote:</DIV>
<DIV>> > Hi Simon,</DIV>
<DIV>>
> I am working with the UW-Madison ecology labs as a student programmer. I am trying to use your C# code that you posted on</DIV>
<DIV>> ></DIV>
<DIV>> > <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>> ></DIV>
<DIV>>
> to see if we can use or extend your C# wrapper to incorporate GDAL into our own projects (see <A
href="http://www.landis.forest.wisc.edu)">http://www.landis.forest.wisc.edu)</A>.</DIV>
<DIV>> ></DIV>
<DIV>>
> Could you help me understand what the function "GDALGetMetadataExt" does, or maybe just point me to where it is defined?? The following line of code (from InterOp.cs, in your function GDALGetMetaData):</DIV>
<DIV>> ></DIV>
<DIV>>
> void** stringList = (void**) GDALGetMetadataExt(hDataset, domain);</DIV>
<DIV>> ></DIV>
<DIV>>
> always returns 0 for me, even when I am certain the dataset is not empty. You also have 'domain' set to "null" (in Dataset.cs) when you call GDALGetMetaData. Could this have something to do with it??</DIV>
<DIV>> ></DIV>
<DIV>>
> I'm a little new to the whole system, so any help you could provide, even if it's just pointing me somewhere, would be great. Thanks a bunch,</DIV>
<DIV>> > -Mikah</DIV>
<DIV>> ></DIV>
<DIV>> _______________________________________________</DIV>
<DIV>> Gdal-dev mailing list</DIV>
<DIV>> Gdal-dev@lists.maptools.org</DIV>
<DIV>> <A
href="http://lists.maptools.org/mailman/listinfo/gdal-dev">http://lists.maptools.org/mailman/listinfo/gdal-dev</A></DIV>
<DIV>></DIV>
<DIV> </DIV>
<DIV> </DIV></FONT></DIV></BODY></HTML>