[Gdal-dev] DriverManager

Matthew Hanson mhanson at photon.com
Fri Oct 15 11:06:52 EDT 2004


Hi,

When is the global DriverManager object created?  I thought it would be
created in the GDALAllRegister function.  What I wanted to do is make the
AllRegister function happen in the background in my wrapper.  

- If the AllRegister function has not been called will GetGDALDriverManager
return a 0?
- The declaration for GetGDALDriverManager does not occur in gdal.h (but
DestroyDriverManager does), but instead is in gdal_priv.h.  Shouldn't it be
in the C API header?
- There's one global instance of DriverManager which (sorta) holds/manages
one instance of GDALDriver for each format type. Does calling
DestroyDriverManager end up destroying all these instances and deregistering
all the drivers?
- I'm trying to figure out the C wrapper works, there's the gdal.h with the
declarations, but how is it linked to the native C++ object functions?


Matt
http://www.omnium-gatherum.org
http://www.photon.com





More information about the Gdal-dev mailing list