[gdal-dev] hdf5 dataset. Header data too long. Truncated

Rashad M mohammedrashadkm at gmail.com
Tue Sep 1 07:50:32 PDT 2015


Hello all,

I have an the following warning from gdal when reading .h5 dataset

Warning 2: Header data too long. Truncated.

Looking at frmts/hdf5/hdf5dataset.cpp there is a define for
MAX_METADATA_LEN

#define MAX_METADATA_LEN 32768


and there is a check
                if( CPLStrlcat(szValue, szData, MAX_METADATA_LEN) >=

MAX_METADATA_LEN )
                    CPLError( CE_Warning, CPLE_OutOfMemory,
                              "Header data too long. Truncated\n");

Now I could update MAX_METADATA_LEN but is there a way it can set be set at
runtime ?

I am using gdalinfo from gdal svn 1.11 branch
svn info  gives:

Path: .
Working Copy Root Path: /home/mkanavat/sources/gdal_branch_1.11
URL: http://svn.osgeo.org/gdal/branches/1.11/gdal
Relative URL: ^/branches/1.11/gdal
Repository Root: http://svn.osgeo.org/gdal
Repository UUID: f0d54148-0727-0410-94bb-9a71ac55c965
Revision: 30007
Node Kind: directory
Schedule: normal
Last Changed Author: rouault
Last Changed Rev: 30005
Last Changed Date: 2015-09-01 10:17:50 +0200 (Tue, 01 Sep 2015)



-- 
Regards,
   Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150901/ec2191a4/attachment.html>


More information about the gdal-dev mailing list