<div dir="ltr">Hi,<div>I was wondering if there is any documentation on what a GDALMetadata XML structure might contain, both in terms</div><div>of element/attributes, and key names?</div><div><br></div><div>Online I've found this example:</div><div><a href="https://www.awaresystems.be/imaging/tiff/tifftags/gdal_metadata.html">https://www.awaresystems.be/imaging/tiff/tifftags/gdal_metadata.html</a><br></div><div><br></div><div>But checking some files I have laying around there is more variety, for example:</div><div><br></div><div><GDALMetadata>.  <br>    <Item name="Band_1">Max Band_1</Item>.  <br>    <Item name="Band_2">Min Band_1</Item>.  <br>    <Item name="Band_3">Mean Band_1</Item>.  <br>    <Item name="Band_4">SD Band_1</Item>.  <br>    <Item name="Band_5">MASD Band_1</Item>.  <br>    <Item name="Band_6">Valid Inputs</Item>.  <br>    <Item name="OFFSET" sample="0" role="offset">0</Item>.  <br>    <Item name="SCALE" sample="0" role="scale">0.000100000000000000005</Item>.  <br>    <Item name="OFFSET" sample="1" role="offset">0</Item>.  <br>    <Item name="SCALE" sample="1" role="scale">0.000100000000000000005</Item>.  <br>    <Item name="OFFSET" sample="2" role="offset">0</Item>.  <br>    <Item name="SCALE" sample="2" role="scale">0.000100000000000000005</Item>.  <br>    <Item name="OFFSET" sample="3" role="offset">0</Item>.  <br>    <Item name="SCALE" sample="3" role="scale">0.000100000000000000005</Item>.  <br>    <Item name="OFFSET" sample="4" role="offset">0</Item>.  <br>    <Item name="SCALE" sample="4" role="scale">0.000100000000000000005</Item>.  <br>    <Item name="OFFSET" sample="5" role="offset">0</Item>.  <br>    <Item name="SCALE" sample="5" role="scale">0.000100000000000000005</Item>.<br></GDALMetadata>.<br></div><div><br></div><div>but also:</div><div><br></div><div><GDALMetadata>.  <br>    <Item name="lat#units">degrees_north</Item>.  <br>    <Item name="LatLon_Projection#earth_radius">6371229</Item>.  <br>    <Item name="LatLon_Projection#grid_mapping_name">latitude_longitude</Item>.  <br>    <Item name="lon#units">degrees_east</Item>.  <br>    <Item name="NC_GLOBAL#Analysis_or_forecast_generating_process_identifier_defined_by_originating_centre">Coastal Ocean Circulation Model</Item>.  <br>    <Item name="NC_GLOBAL#Conventions">CF-1.6</Item>.  <br>    <Item name="NC_GLOBAL#featureType">GRID</Item>.  <br>    <Item name="NC_GLOBAL#file_format">GRIB-2</Item>.  <br>    <Item name="NC_GLOBAL#GRIB_table_version">2,1</Item>.  <br>    <Item name="NC_GLOBAL#history">Read using CDM IOSP GribCollection v3</Item>.  <br>    <Item name="NC_GLOBAL#Originating_or_generating_Center">US National Weather Service, National Centres for Environmental Prediction (NCEP)</Item>.  <br>    <Item name="NC_GLOBAL#Originating_or_generating_Subcenter">0</Item>.  <br>    <Item name="NC_GLOBAL#Type_of_generating_process">Forecast</Item>.  <br>    <Item name="NETCDF_DIM_EXTRA">{time}</Item>.  <br>    <Item name="NETCDF_DIM_time_DEF">{1,6}</Item>.  <br>    <Item name="NETCDF_DIM_time_VALUES">3</Item>.  <br>    <Item name="time#calendar">proleptic_gregorian</Item>.  <br>    <Item name="time#long_name">GRIB forecast or observation time</Item>.  <br>    <Item name="time#standard_name">time</Item>.  <br>    <Item name="time#units">Hour since 2014-01-23T00:00:00Z</Item>.  <br>    <Item name="u-component_of_current_surface#abbreviation">UOGRD</Item>.  <br>    <Item name="u-component_of_current_surface#coordinates">reftime time lat lon </Item>.  <br>    <Item name="u-component_of_current_surface#Grib2_Generating_Process_Type">Forecast</Item>.  <br>    <Item name="u-component_of_current_surface#Grib2_Level_Type">Ground or water surface</Item>.  <br>    <Item name="u-component_of_current_surface#Grib2_Parameter">{10,1,2}</Item>.  <br>    <Item name="u-component_of_current_surface#Grib2_Parameter_Category">Currents</Item>.  <br>    <Item name="u-component_of_current_surface#Grib2_Parameter_Discipline">Oceanographic products</Item>.  <br>    <Item name="u-component_of_current_surface#Grib2_Parameter_Name">u-component of current</Item>.  <br>    <Item name="u-component_of_current_surface#Grib_Variable_Id">VAR_10-1-2_L1</Item>.  <br>    <Item name="u-component_of_current_surface#grid_mapping">LatLon_Projection</Item>.  <br>    <Item name="u-component_of_current_surface#long_name">u-component of current @ Ground or water surface</Item>.  <br>    <Item name="u-component_of_current_surface#missing_value">nan</Item>.  <br>    <Item name="u-component_of_current_surface#units">m/s</Item>.  <br>    <Item name="abbreviation" sample="0">UOGRD</Item>.  <br>    <Item name="coordinates" sample="0">reftime time lat lon </Item>.  <br>    <Item name="Grib2_Generating_Process_Type" sample="0">Forecast</Item>.  <br>    <Item name="Grib2_Level_Type" sample="0">Ground or water surface</Item>.  <br>    <Item name="Grib2_Parameter" sample="0">{10,1,2}</Item>.  <br>    <Item name="Grib2_Parameter_Category" sample="0">Currents</Item>.  <br>    <Item name="Grib2_Parameter_Discipline" sample="0">Oceanographic products</Item>.  <br>    <Item name="Grib2_Parameter_Name" sample="0">u-component of current</Item>.  <br>    <Item name="Grib_Variable_Id" sample="0">VAR_10-1-2_L1</Item>.  <br>    <Item name="grid_mapping" sample="0">LatLon_Projection</Item>.  <br>    <Item name="long_name" sample="0">u-component of current @ Ground or water surface</Item>.  <br>    <Item name="missing_value" sample="0">nan</Item>.  <br>    <Item name="NETCDF_DIM_time" sample="0">3</Item>.  <br>    <Item name="NETCDF_VARNAME" sample="0">u-component_of_current_surface</Item>.  <br>    <Item name="units" sample="0">m/s</Item>.  <br>    <Item name="UNITTYPE" sample="0" role="unittype">m/s</Item>.<br></GDALMetadata><br></div><div><br></div><div>The periods at the end of the line are not valid, not sure where they are coming from, exiftool reports them out</div><div>of one tiff file I have handy, which was converted out of a grib file a few years ago</div><div><br></div><div>Cheers</div><div>Andrea</div><div><div><div><br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><font face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap">==
GeoServer Professional Services from the experts! Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.
==

Ing. Andrea Aime 
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

<a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a>
<a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a>


-------------------------------------------------------

<i>Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.</i>
</span></font></p></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>