<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font class="Apple-style-span" face="Tahoma" size="2">Dear friend,</font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">Using, to try gdal 1.8, the following code i cannot find the ECW driver in the list of drivers.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Dim GDAL As String = ";"</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> GDAL &= Application.StartupPath & "\GDAL"</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Dim CAMINO As String = Environment.GetEnvironmentVariable("PATH")</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> CAMINO &= ";" & GDAL</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Environment.SetEnvironmentVariable("PATH", CAMINO)</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> OSGeo.GDAL.Gdal.AllRegister()</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Dim drvcount As Integer = OSGeo.GDAL.Gdal.GetDriverCount</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Dim listadrivers As New List(Of String)</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> For i As Integer = 0 To drvcount - 1</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> listadrivers.Add(OSGeo.GDAL.Gdal.GetDriver(i).LongName)</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Next</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> listadrivers.Sort()</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> For Each item In listadrivers</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> ComboBox1.Items.Add(item.ToString)</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Next</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> End Sub</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">I put in the Bin\Debug\ folder the GDAL and reference de gdal_csharp.dll file in my CSharp project and doesn't work.</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">Anybody have the same problem?</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">I install the exe that you tell me and copy later the gdal folder into my project. Also I reference and activate gdal in my form_load event.</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">Thanks in advanced.</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">Francisco J.</font></div><br><div id="SkyDrivePlaceholder" style="font-family: Tahoma; font-size: 10pt; "></div><font class="Apple-style-span" face="Tahoma" size="2">> Date: Mon, 18 Apr 2011 14:19:42 +0200</font><br><font class="Apple-style-span" face="Tahoma" size="2">> From: jrepetto@free.fr</font><br><font class="Apple-style-span" face="Tahoma" size="2">> To: gdal-dev@lists.osgeo.org</font><br><font class="Apple-style-span" face="Tahoma" size="2">> CC: gistdt08@hotmail.es</font><br><font class="Apple-style-span" face="Tahoma" size="2">> Subject: Re: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> Le 18/04/2011 12:26, Francisco José Reyes Peralta a écrit :</font><br><font class="Apple-style-span" face="Tahoma" size="2">> ></font><br><font class="Apple-style-span" face="Tahoma" size="2">> > I'm using GDAL 1.8.0, with the csharp dlls loaded into my project.</font><br><font class="Apple-style-span" face="Tahoma" size="2">> ></font><br><font class="Apple-style-span" face="Tahoma" size="2">> > I can load another images but ECW I cannot load into my project.</font><br><font class="Apple-style-span" face="Tahoma" size="2">> ></font><br><font class="Apple-style-span" face="Tahoma" size="2">> > Is needed another dll as the*libecwj2.dll*?</font><br><font class="Apple-style-span" face="Tahoma" size="2">> ></font><br><font class="Apple-style-span" face="Tahoma" size="2">> > Is supported by GDAL this images actually? In the support formats you can find ECW file supported.</font><br><font class="Apple-style-span" face="Tahoma" size="2">> ></font><br><font class="Apple-style-span" face="Tahoma" size="2">> > I'm using WindowsXP 32bits, and OsGeo.Gdal, OsGeo.OGR, y OsGeo.OSR namespaces.</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> Francisco,</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> Try to install gdal-18-1600-core.msi and gdal-18-1600-ecw.msi that </font><br><font class="Apple-style-span" face="Tahoma" size="2">> you'll find on the page :</font><br><font class="Apple-style-span" face="Tahoma" size="2">> <http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1600-gdal-1-8-0-mapserver-5-6-6.zip></font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> Jean-Claude</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br></div>                                            </body>
</html>