Hi all,<br>
<br>
well i found the little error from my files. In fact blanks before the 
name of type of the file in the header (GENERAL_INFORMATION_FILE for 
example) missed. That&#39;s why i had :<br>
ERROR 1: Unrecognised data_struct_code value G.<br>
Field 000 initialization incorrect.<br>
ERROR 1: Unrecognised data_type_code value E.<br>
Field 000 initialization incorrect.<br>
<br>
But the size of the control record was correct and size and offset of 
subfields too. Then it&#39;s possible to read data after the control record.<br>
<br>
I still have a problem to understand how gdalinfo.exe works.<br>
In the Gdalinfo.class, if the dataset can&#39;t be read the dataset = null. 
Getting the driver is done by calling the method &quot;.GetDriver()&quot; from the
 Dataset class. Well if the dataset is null it&#39;s impossible to get the 
driver. And in the Gdalinfo.class (in the Gdalinfo.c too) if the dataset
 is null the program exit.<br>
But as I say I can get the driver with &quot;gdal.IdentifyDriver(pszFilename)&quot;.<br>
<br>
Then, for me gdalinfo.exe is still magic.<br>
<br>
About Qgis, I download the source to understand how it works. I found in
 the GdalTools_utils.py functions that call gdalinfo with Qprocess. If I
 understand correctly, this is a Qt class &quot;used to start external 
programs and to communicate with them&quot;. After Qgis get the output and 
splits it to get information like information giving by gdalinfo.exe.<br>
That&#39;s why I said Qgis use gdalinfo.exe.<br>
<br>
There&#39;s no way to get information with bindings like gdalinfo.exe when files contains errors ?<br><br><br><div class="gmail_quote"><br></div><br>