I would like to create a virtual raster from an .img file that has associated .ige, .rde, .rrd, and .xml files. I am doing this to enable virtual I/O so I want an "exact copy" of the original raster.
I am just calling this from the command line:
gdalbuildvrt file.vrt file.img
This creates a VRT but the attribute table is stripped; instead of categorical data I now have continuous values. How can I fix this?
VRTRasterBand
with aColorTable
but not an attribute table – qdread Nov 12 '20 at 20:38gdal_translate -of VRT file.img file.vrt
instead ofgdalbuildvrt
? – user2856 Nov 13 '20 at 1:01gdal_translate
as well and got the same result as withgdalbuildvrt
. – qdread Nov 13 '20 at 2:39