Hi all,

I came across what I think is a bug on reading in VAT tables using the AIG 
driver.  I have a raster attribute table that has fixed numeric types for some 
items and when using the GetTypeOfCol method (in Python), I'm getting back 
GFT_String (2) values.  I think I can trace it to lines 463-480 in 
aigdataset.cpp.  As it's looping through the fields, the type is set to 
GFT_String by default and only AVC_FT_BININT and AVC_FT_BINFLOAT are checked to 
possibly change type.  It seems like there should also be these 
checks/conversions:

  AVC_FT_DATE -> GFT_Date(?)
  AVC_FT_FIXINT -> GFT_Integer
  AVC_FT_FIXNUM -> GFT_Real

I could be missing the reasoning of why these types shouldn't crosswalk to the 
suggested GFT_* values, so I haven't submitted as a bug.

thanks, matt
 

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to