<div dir="ltr">Hi,<div><br></div><div>When importing National Landcover Dataset (<a href="http://www.mrlc.gov/nlcd2011.php">http://www.mrlc.gov/nlcd2011.php</a>), I would like to get the classes imported as raster labels. Gdalinfo reports existing attribute table where one of the columns is </div><div><br></div><div><div>  <FieldDefn index="6"></div><div>    <Name>Land Cover Class</Name></div><div>    <Type>2</Type></div><div>    <Usage>0</Usage></div><div>  </FieldDefn></div></div><div><br></div><div>r.in.gdal should be able to recognize it and use it as a label. The problem is that the field Usage reports 0, which represents GFU_Generic (General purpose field) instead of GFU_Name (Class name) and as a result r.in.gdal doesn't take it into account. The attributes are supposed to be stored in some vat.dbf file in the NLCD dataset (I was not able to open it on Ubuntu with LibreOffice due to some encoding problems to see what's exactly there). I don't understand how GDAL decides which column is generic or represents class name and I don't know if the problem is on GDAL's side or on the side of the data provider. Would it make sense to have an option in r.in.gdal to specify the name of the column which should be used for labels?</div><div><br></div><div>Thanks,</div><div><br></div><div>Anna</div><br><br></div>