<div dir="ltr"><div><div><div><div>Hello all,<br><br></div>I have an problem when reading metadata information of HDF5 dataset. some of the values are not parsed properly by GDAL. Below is the relevant part of output from gdalinfo<br><br><br>....<br> Azimuth_Processing_Number_of_Looks= <br> Bits_per_Sample= <br>....<br><br>S01_B001_Azimuth_Ramp_Code= <br><br></div><div> <garbage values and newline chars><br></div><div><br>....<br>....<br> Sample_Format=INT<br> Samples_per_Pixel= <br> Satellite_Height=628440.5 <br> Satellite_ID=CSKS3<br>....<br><br><br></div><div>I had looked into frmts/hdf5/hdf5dataset.cpp and all of these metadata are of type H5T_NATIVE_UCHAR.<br><br><a href="https://trac.osgeo.org/gdal/browser/branches/1.11/gdal/frmts/hdf5/hdf5dataset.cpp#L728">https://trac.osgeo.org/gdal/browser/branches/1.11/gdal/frmts/hdf5/hdf5dataset.cpp#L728</a><br><br></div><div>changing format specifier from char( %c) to int(%d) solves the issue for me. But is there a better fix for this?<br><span class=""></span></div><div><br></div><div><br></div>OS: Fedora 20 x86_64<br></div>gdal branch: 1.11<br><br></div>svn info <br><br>Path: .<br>Working Copy Root Path: /home/mkanavat/sources/gdal_branch_1.11<br>URL: <a href="http://svn.osgeo.org/gdal/branches/1.11/gdal">http://svn.osgeo.org/gdal/branches/1.11/gdal</a><br>Relative URL: ^/branches/1.11/gdal<br>Repository Root: <a href="http://svn.osgeo.org/gdal">http://svn.osgeo.org/gdal</a><br>Repository UUID: f0d54148-0727-0410-94bb-9a71ac55c965<br>Revision: 30007<br>Node Kind: directory<br>Schedule: normal<br>Last Changed Author: rouault<br>Last Changed Rev: 30005<br>Last Changed Date: 2015-09-01 10:17:50 +0200 (Tue, 01 Sep 2015)<br><br clear="all"><div><div><div><div><div><div><br>-- <br><div class="gmail_signature"><div><font face="arial, helvetica, sans-serif">Regards,<br> Rashad</font></div></div>
</div></div></div></div></div></div></div>