[gdal-dev] Passing RAT between drivers, including VRT
Ivan Lucena
lucena_ivan at hotmail.com
Thu Aug 15 09:53:46 PDT 2013
Hi folks,
I might be wrong, but it looks like the VRT driver is not supporting RAT at this moment (TRUNK).
Is that correct?
A simple way to test it is by "gdal_translating" that file "i8u_c_i.img" from autotest to VRT:
$ gdal_translate -of vrt i8u_c_i.img vrt_i8u_c_i.vrt
$ gdalinfo vrt_i8u_c_i.vrt -noct
The RAT is not there.
That wouldn't be a big problem by itself, the real problem is that gdal_translate uses an internal VRT to support several options. And I am trying to fix that ticket: http://trac.osgeo.org/gdal/ticket/5200 and I noticed that when I use *-a_nodata* the GetDefaultRAT() it returns null.
Drivers that implement *file based* GDALPamDataset doesn't seems to have that problem because they don't need to call GetDefaultRAT(). Examples:
$ gdal_translate -of gtiif i8u_c_i.img gtiff_i8u_c_i.tif -a_nodata 0
$ gdal_translate -of gtiif i8u_c_i.img gtiff_i8u_c_i.tif
The RAT is transferred to the geotiff file in both instances.
Is that something we would like to get fix in VRT?
Best regards,
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130815/02be6b4e/attachment.html>
More information about the gdal-dev
mailing list