<div>Hi Frank:</div>
<div> Thanks for the swift reply.</div>
<div> Right now it opens the metadata asociated to the root, and also the metadata asociated with all the other groups, but it doesn't open the metadata asociated to the specified element (bug?) </div>
<div> </div>
<div>regards<br></div>
<div class="gmail_quote">2011/6/15 Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On 11-06-15 03:19 PM, Alex Mantaut wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi all,<br> I'm trying to open the metadata from a subdataset of an HDF5 file...<br> When I open the file by it's filename and then ask for the metadata it<br>
returns the metadata asociated to the root and all the subdatasets.... But when<br>I open the file by specifying the subdataset name to GDALOpen() and then ask<br>for the metadata it returns the metadata asociated to all groups but none of<br>
the subdatasets...<br> I looked a bit into the hdf5dataset code and realized that<br>this difference emerges from the fact that when GDAL opens the file specifying<br>only the filename it uses hdf5dataset to open the file, but when I specify the<br>
subdataset to GDALOpen() it uses hdf5imagedataset instead, and it loads the<br>metadata in a different way.<br> I'm not sure of what the expected behavior is on hdf5image for loading<br>metadata... It should load all the metadata of the file? Just the metadata<br>
asociated to the subdataset? Or should the application ask for the subdataset<br>in some other way and then ask for the metadata?<br></blockquote><br></div>Alex,<br><br>I'm not sure of the details of the metadata handling, but to the extent<br>
possible I think opening a subdataset should return metadata specific to<br>that subdataset and any "root" metadata that applies to everything in the<br>.hdf file.<br><br>Best regards,<br>-- <br>---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Programmer for Rent<br><br>_______________________________________________<br>gdal-dev mailing list<br><a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>--<br> Alex Mantaut<br>SUR Emprendimientos Tecnológicos<br>
<br>Perú 345 Piso 5to Oficina "B" (C1067AAG)<br>Ciudad de Buenos Aires, Argentina<br>Tel. +54 (11) 4342-2976/84<br><a href="mailto:javierurien@suremptec.com.ar" target="_blank">javierurien@suremptec.com.ar</a><br>
<a href="http://www.suremptec.com/" target="_blank">www.suremptec.com</a><br>