<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi, everyone.  I was wondering if there is a best practice / community consensus on how to render an arbitrary non-RGB COG?  In other words, how do we decide what pixel color a raster value corresponds to?  I haven't kept fully up-to-date on recent developments, so I might totally be missing something.  As far as I recall, the min and max aren't usually stored in GeoTIFF metadata.  I came across MinSampleValue[1] and MaxSampleValue[2], but can't recall seeing them in use before.  Should we be using these tags to scale a value for rendering?  Or is it more common to compute the statistics XML or JSON file using GDAL and fetch that?</div><div dir="ltr"><br></div><div>This question came about as a result of the great work that Michael Hiley is doing to add COG support to georaster-layer-for-leaflet[3].  You can see the code here: <a href="https://github.com/GeoTIFF/georaster-layer-for-leaflet/pull/11/files#diff-38ec623c78d873e84e6a002f0cf0f25bR241">https://github.com/GeoTIFF/georaster-layer-for-leaflet/pull/11/files#diff-38ec623c78d873e84e6a002f0cf0f25bR241</a></div><div><br></div><div>Thank you very much for any advice you can provide and have a great weekend!</div><div dir="ltr"><br></div><div>Sincerely,</div><div>Daniel J. Dufour</div><div><a href="http://geotiff.io">geotiff.io</a> | <a href="http://geoblaze.io">geoblaze.io</a></div><div dir="ltr"><br></div><div>References</div><div>1) <a href="https://www.awaresystems.be/imaging/tiff/tifftags/minsamplevalue.html">https://www.awaresystems.be/imaging/tiff/tifftags/minsamplevalue.html</a></div><div>2) <a href="https://www.awaresystems.be/imaging/tiff/tifftags/maxsamplevalue.html">https://www.awaresystems.be/imaging/tiff/tifftags/maxsamplevalue.html</a></div><div>3) <a href="https://github.com/GeoTIFF/georaster-layer-for-leaflet">https://github.com/GeoTIFF/georaster-layer-for-leaflet</a></div></div></div></div></div></div>