Re: [gdal-dev] reading rat values from GDB raster

2023-07-18 Thread Even Rouault
William, if you gdal_translate / CreateCopy() to a TIF, the RAT will be written in the side car .aux.xml file. You can either use your favorite XML edition tool to remove all columns but the one you are interested in, or use the C/C++/Python GDALRasterAttributeTable API to create a new RAT an

Re: [gdal-dev] gdalinfo on large vrt takes a long time

2023-07-18 Thread William Kyngesburye
(sorry, my email sorting rules missed your reply somehow, just found it) The env var didn't help, and the vrt does have statistics. Pathnames in the vrt are relative to the vrt, if that might be a problem in this situation. I turned on CPL_DEBUG. gdalinfo is doing whatever is taking time aft

Re: [gdal-dev] gdalinfo on large vrt takes a long time

2023-07-18 Thread Even Rouault
Can you run under gdb and break when it takes a long time and display the stack trace ? Something along (best with a debug build): gdb --args gdalinfo your.vrt run hit ctrl-c when it takes some time bt Le 19/07/2023 à 00:17, William Kyngesburye a écrit : (sorry, my email sorting rules m

[gdal-dev] reading rat values from GDB raster

2023-07-18 Thread William Kyngesburye
I would like to convert a GDB raster with a multi column rat by writing out one of the columns. I can see the rat with gdalinfo but I can't figure out how to read values from the rat (other than the cell value) so they can be written to a new raster. - William Kyngesburye