<div dir="ltr"><div><div><div>Hello all,<br><br></div>I have an the following warning from gdal when reading .h5 dataset<br><br>Warning 2: Header data too long. Truncated.<br><br></div><div>Looking at frmts/hdf5/hdf5dataset.cpp there is a define for MAX_METADATA_LEN <br><br>#define MAX_METADATA_LEN 32768<br><br><br></div><div>and there is a check<br>                if( CPLStrlcat(szValue, szData, MAX_METADATA_LEN) >=<br>                                                            MAX_METADATA_LEN )<br>                    CPLError( CE_Warning, CPLE_OutOfMemory,<br>                              "Header data too long. Truncated\n");<br><br></div><div>Now I could update MAX_METADATA_LEN but is there a way it can set be set at runtime ?<br></div><div><br></div>I am using gdalinfo from gdal svn 1.11 branch<br></div>svn info  gives:<br><br>Path: .<br><div><div>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><br clear="all"><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>