<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">hi,<br><br><span style="border-collapse: collapse; font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; ">I am interested in using <b>OGR </b>to read data from an ArcSDE (9.2-9.3) database. I have built ogr_SDE.dll,but i can not open the SDE database.<br>
<br>This is the csharp code :<br></span><div> <br> Ogr.RegisterAll();</div><div> Driver sdedr = Ogr.GetDriverByName("SDE"); // <span style="background-color: rgb(255, 0, 0); ">sdedr = null</span></div>
<div> /* -------------------------------------------------------------------- */</div><div> /* Open data source. */</div><div> /* -------------------------------------------------------------------- */</div>
<div> DataSource ds = Ogr.Open("SDE:192.168.1.123,5151,sde,sde,sde", 0); // <font style="background-color: rgb(255, 0, 0); ">ds=null</font></div><span style="border-collapse: collapse; font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><br>
</span><font face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="border-collapse: collapse; ">I want to know how to<span style="font-family: arial; border-collapse: separate; "> register</span> ArcSDE driver.<br>
</span></font><span style="font-size: medium; "><br>TIA for any advice you might give and have a great day!</span></span>