Re: [gdal-dev] HDF5 metadata format problems

2011-06-14 Thread Frank Warmerdam
On 11-06-14 10:38 AM, Alex Mantaut wrote: Frank: Thanks for your reply. I thought that there could be a trim funcion on CPL... I will use that code to trim my string... Alex, In fact, with a quick check I see I have added a Trim() method to the CPLString to remove trailing white space

Re: [gdal-dev] HDF5 metadata format problems

2011-06-14 Thread Alex Mantaut
Frank: Thanks for your reply. I thought that there could be a trim funcion on CPL... I will use that code to trim my string... Another question: To get several fields from the file's metadata, is it better to use GetMetadata() and then search within the array for the fields, or use GetMeta

Re: [gdal-dev] HDF5 metadata format problems

2011-06-14 Thread Frank Warmerdam
On 11-06-14 10:08 AM, Alex Mantaut wrote: Hi Frank: Thanks for your response. I wasn't sure if the whitespace was allways going to be there, because for some fields had the white space but others didn't. I will remove the trailing whitespace. Now, I'm trying to develop a modification

Re: [gdal-dev] HDF5 metadata format problems

2011-06-14 Thread Alex Mantaut
Hi Frank: Thanks for your response. I wasn't sure if the whitespace was allways going to be there, because for some fields had the white space but others didn't. I will remove the trailing whitespace. Now, I'm trying to develop a modification on the HDF5 driver to allow it to get the g

Re: [gdal-dev] HDF5 metadata format problems

2011-06-13 Thread Frank Warmerdam
On 11-06-13 04:53 PM, Alex Mantaut wrote: Hi all: I've ran into some troubles while trying to interpret an HDF5's metadata... Every field on HDF5 has it's own type(string, uchar, double) But GetMetadataItem("field_name") converts the data from the dataset into a C-style zero terminated

[gdal-dev] HDF5 metadata format problems

2011-06-13 Thread Alex Mantaut
Hi all: I've ran into some troubles while trying to interpret an HDF5's metadata... Every field on HDF5 has it's own type(string, uchar, double) But GetMetadataItem("field_name") converts the data from the dataset into a C-style zero terminated string. This gives me a few problems: a-T