<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Trouble with OGDI Driver and FWTools</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Please forgive the possible noobness of this question. I also felt it was best sent here instead of the GDAL list because I think it's more a problem with my setting-up of FWTools.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I'm using Windows XP and I installed FWTools with the FWTools100a8.exe from <A HREF="http://www.gdal.org/dl/fwtools/">http://www.gdal.org/dl/fwtools/</A>. I am trying to write an app that can load some VMAP0 data. The trouble is that whether using GDAL or OGR, it doesn't seem to load the OGDI driver.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">The code I have for loading and checking the drivers is the following:</FONT>
</P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">#if</FONT><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">defined</FONT><FONT SIZE=2 FACE="Courier New">(GDAL)</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">GDALAllRegister();</FONT>
<BR> <FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">int</FONT><FONT SIZE=2 FACE="Courier New"> numDrivers = GDALGetDriverCount();</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">#else</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">OGRRegisterAll();</FONT>
<BR> <FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">int</FONT><FONT SIZE=2 FACE="Courier New"> numDrivers = OGRGetDriverCount();</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">#endif</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">printf("Registered Drivers:\n");</FONT>
<BR> <FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">for</FONT><FONT SIZE=2 FACE="Courier New">(</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">int</FONT><FONT SIZE=2 FACE="Courier New"> i=0; i<numDrivers; ++i)</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">#if</FONT><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">defined</FONT><FONT SIZE=2 FACE="Courier New">(GDAL)</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">GDALDriverH driver = GDALGetDriver(i);</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">printf("\t%s\n", GDALGetDriverShortName(driver));</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">#else</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">OGRSFDriverH driver = OGRGetDriver(i);</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">printf("\t%s\n", OGR_Dr_GetName(driver));</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">#endif</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">}</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">Whether I define GDAL or not, the OGDI driver is not in the output drivers list.</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">The OGDI driver IS listed in the formats list for both "gdalinfo --formats" and "ogrinfo --formats" however, so I'm not sure where my app could be failing. Is there some other setup stuff that I just overlooked?</FONT></P>
<P><FONT SIZE=2 FACE="Courier New">I greatly appreciate any help on this.</FONT>
</P>
</BODY>
</HTML>