<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    In my application, I would like to be able to programatically
    specify which driver to use when opening a GDALDataset when more
    than one driver can process the file. To do this, I have
    deregistered the drivers that I don't want to use. The
    GetGDALDriverManager-::DeregisterDriver() function does the trick. <br>
    <br>
    The problem I have is being able to reregister the drivers that I
    deregistered above. First of all, in order to register a driver, you
    need a handle to it. It would seem that GetDriverByName should do
    the trick but it returns NULL if the driver was previously
    deregistered. Looking at the GDALDriverrManager code, it is easy to
    see why this is as GDALDriver manager only searches the currently
    enabled drivers to get its handle. <br>
    <br>
    I then thought that calling GDALDriverManager::AutoloadDrivers()
    would reinitialise the driver list but it does not return the driver
    that has been deregistered.  It would seem that GDALRegisterDriver
    would work but it requires a handle to the driver which as I stated
    above, cannot be obtained once a driver has been deregistered.  <br>
    <br>
    So, how does one get a handle to a deregistered driver or
    alternatively, how can GDALDriverManager::AutoloadDrivers be made to
    reconstruct the driver list with all the currently configured
    drivers? <br>
    <br>
    It seems that GDALDriverManager::RegisterDriver is a useless
    function since there is no way to get a handle to a previously
    deregistered driver.
    <div class="moz-signature">-- <br>
      <div class="moz-signature">
        <h2><font color="#009933">Allen Kempe</font></h2>
        <span> <a href="http://acksoft.dyndns.biz/PictureGallery"
            rel="nofollow" target="_blank">http://acksoft.dyndns.biz/PictureGallery</a></span><br>
        <font color="#000000">298 W. Audubon Drive<br>
          Shepherdsville, KY 40165<br>
          +1 502 543-3438<br>
        </font> </div>
    </div>
  </body>
</html>