<div dir="ltr">Hi Jukka,<div>thank you for following up. I believe that provides information for the PAM dataset, which</div><div>is normally a sidecar containing statistical information such as min/max/histograms.</div><div>The GDAL metadata TIFF tag instead normally contains other information, such as scale/offset,</div><div>band names, units, and uses a XML that has a different structure.</div><div><br></div><div>Looking into the code there is something around here:</div><div><a href="https://github.com/OSGeo/gdal/blob/master/gdal/frmts/gtiff/geotiff.cpp#L13726">https://github.com/OSGeo/gdal/blob/master/gdal/frmts/gtiff/geotiff.cpp#L13726</a><br></div><div><br></div><div>I see explicit treatment for scale/offset and a few others, not sure if there is anything else?</div><div>Like, if a band had a custom name, would it show up in the GDALMetadata structure in a significant way?</div><div>From my previous example, things like:</div><div><br></div><div> <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></div><div><br></div><div>are they actually used or just treated as "random strings"?</div><div>Looking at a GDALInfo output it looks like of the second, but maybe I'm missing something:</div><div><br></div><div><font face="courier new, monospace">Metadata:<br> AREA_OR_POINT=Area<br><b> Band_1=Max Band_1</b><br> Band_2=Min Band_1<br> Band_3=Mean Band_1<br> Band_4=SD Band_1<br> Band_5=MASD Band_1<br> Band_6=Valid Inputs<br> UNITS=m<br>...<br><b>Band 1</b> Block=10x10 Type=Int32, ColorInterp=Gray<br> NoData Value=-9999<br> Offset: 0, Scale:0.0001<br>Band 2 Block=10x10 Type=Int32, ColorInterp=Undefined<br> NoData Value=-9999<br> Offset: 0, Scale:0.0001<br>Band 3 Block=10x10 Type=Int32, ColorInterp=Undefined<br> NoData Value=-9999<br> Offset: 0, Scale:0.0001<br>Band 4 Block=10x10 Type=Int32, ColorInterp=Undefined<br> NoData Value=-9999<br> Offset: 0, Scale:0.0001<br>Band 5 Block=10x10 Type=Int32, ColorInterp=Undefined<br> NoData Value=-9999<br> Offset: 0, Scale:0.0001<br>Band 6 Block=10x10 Type=Int32, ColorInterp=Undefined<br> NoData Value=-9999<br> Offset: 0, Scale:0.0001</font><br></div><div><br></div><div><br></div><div>Cheers</div><div>Andrea</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 27, 2019 at 1:11 PM jratike80 <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Perhaps here<br>
<a href="https://github.com/OSGeo/gdal/blob/master/gdal/gcore/gdalpamdataset.cpp" rel="noreferrer" target="_blank">https://github.com/OSGeo/gdal/blob/master/gdal/gcore/gdalpamdataset.cpp</a><br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
geowolf wrote<br>
> Hi,<br>
> I was wondering if there is any documentation on what a GDALMetadata XML<br>
> structure might contain, both in terms<br>
> of element/attributes, and key names?<br>
> ...<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html</a><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="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="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">Regards,
Andrea Aime
==
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>