<html><head></head><body><div class="ydp47a2a2feyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div><span style="color: rgb(38, 40, 42);">Dear GDAL-DEV Mailing List, </span></div></div><div id="ydp1dec658cyahoo_quoted_5266307804" class="ydp1dec658cyahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div><div id="ydp1dec658cyiv4550036678"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" class="ydp1dec658cyiv4550036678ydp986152f8yahoo-style-wrap"><div dir="ltr"><br></div><div dir="ltr">this is the first time with GDAL for me.</div><div dir="ltr">I would need to convert a GeoTIFF file already reclassified in Integer values into an analogous GeoTIFF with associated a RAT table.</div><div dir="ltr">I would need to use it with ESRI ArcGIS Online and apply unique-value style, which seems not feasible with normal raster layers (without RAT including unique categories).</div><div dir="ltr">I'm not sure that GeoTIFF can support a RAT for ArcGIS, but a friend suggested to follow the two next steps reported below to reach my objective, but it seems that the GTiff function does not support the creation of a RAT table for a TIFF. </div><div dir="ltr">Can someone more experienced than me confirm this?</div><div dir="ltr">Is there some alternative solution to create a raster dataset with RAT recognized as such by ESRI ArcGIS, in particular ArcGIS online?</div><div dir="ltr">Thanks in advance for your help</div><div dir="ltr"><br></div><div dir="ltr">Best regards</div><div dir="ltr"><br></div><div dir="ltr">Giuseppe</div><div dir="ltr"><b><u><br></u></b></div><div dir="ltr"><b><u>The procedure that was supposed to solve the issue:</u></b></div><div dir="ltr"><br></div><div dir="ltr">After creating a DBF file with three essential columns VALUES CLASS and COUNT where VALUES refers to the distinct integers that are in the GeoTIFF, I used the following</div><div dir="ltr">GDA functions:</div><div dir="ltr"><br></div><div dir="ltr"><span>gdal_translate -of GTiff -co "CREATE_RAT=YES" InputFile.tif OutputFile_with_rat.tif</span><br></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>The raster is created but I get the following <span><span style="color:rgb(0, 0, 0);font-family:Helvetica Neue, Helvetica, Arial, sans-serif;"><b>Warning 6: driver GTiff does not support creation option CREATE_RAT</b></span></span></span></div><div dir="ltr"><span><span><span style="color:rgb(0, 0, 0);font-family:Helvetica Neue, Helvetica, Arial, sans-serif;"><b><br></b></span></span></span></div><div dir="ltr">Then I tried to associate anyway the DBF table to the new raster: </div><div><br></div><div dir="ltr"><span>gdaladdo -r <span><span style="color:rgb(0, 0, 0);font-family:Helvetica Neue, Helvetica, Arial, sans-serif;">OutputFile_with_rat.</span></span>tif --config RAT_PATH <span><span style="color:rgb(0, 0, 0);font-family:Helvetica Neue, Helvetica, Arial, sans-serif;">OutputFile_with_rat</span></span>.dbf</span><br></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>This second command returns a positive feedback "Done"</span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><span>0...10...20...30...40...50...60...70...80...90...100 - done.</span><br></span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><p class="ydp1dec658cyiv4550036678ydp55f28544MsoNormal"><br></p></span><br></div></div></div></div>
</div>
</div></body></html>