I use raster::raster("test.tiff", RAT = T)
to read the file with the format of TIFF.
The TIFF is derived from ArcGIS pro generating using Feature to Raster -> raster -> tiff
.
ArcGIS TIFF's attribution table as below:
As you can see, the fields of OID
, Value
, Count
are not allowed to edit in ArcGIS Pro. But I really need to make Value <- Name
. Thus, though ArcGIS Pro doesn't allow I to modify Value
field, I could use other platform like Python or R to edit the value , and finally I resave the modified data to the TIFF But I don't know how to resave the TIFF. And I learned another way as below:
db = read.dbf('test.tif.vat.dbf')
db$Value = factor(db$Name)
write.dbf(db,'test.tif.vat.dbf')
Even though I can save without any warning, but finally , when I open the TIFF in ArcGIS Pro , there's any change in attribution table .
The reason that I want to modify the value of attribute
Can you tell me what should I do ?