<div dir="auto">Thank you so much. I should have known that, but it wasn’t coming to my mind.<br clear="all"><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Kirk</div></div></div></div><div><br></div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Dec 16, 2025 at 4:40 PM Rahkonen Jukka <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi,<br>
<br>
The http://... downloads the file, use the vsicurl method instead. Test with gdalinfo:<br>
<br>
gdalinfo /vsicurl/"<a href="https://noaa-ocs-nationalbathymetry-pds.s3.amazonaws.com/BlueTopo/BC26826R/BlueTopo_BC26826R_20241023.tiff" rel="noreferrer" target="_blank">https://noaa-ocs-nationalbathymetry-pds.s3.amazonaws.com/BlueTopo/BC26826R/BlueTopo_BC26826R_20241023.tiff</a>"<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
________________________________________<br>
Lähettäjä: gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>> käyttäjän Kirk Waters - NOAA Federal via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>> puolesta<br>
Lähetetty: Tiistai 16. joulukuuta 2025 22.32<br>
Vastaanottaja: <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a> <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
Aihe: [gdal-dev] Raster attributes tables with URL raster<br>
<br>
Dear GDAL gurus,I'm struggling a little with raster attribute tables if the file is remote. They don't seem to be recognized. For example, there is a file (<a href="https://noaa-ocs-nationalbathymetry-pds.s3.amazonaws.com/BlueTopo/BC26826R/BlueTopo_BC26826R_20241023.tiff" rel="noreferrer" target="_blank">https://noaa-ocs-nationalbathymetry-pds.s3.amazonaws.com/BlueTopo/BC26826R/BlueTopo_BC26826R_20241023.tiff</a>) with a side-car *.aux.xml file that has a RAT for band 3. If I pull down those two files locally and run gdalinfo on it, I can see the RAT. If I do the same with the URL, no attributes show. My goal is to grab the RAT in python, but this test script also gets nothing for each band (each band has a NoneType RAT instead of a gdal.RasterAttributeTable).from osgeo import gdalgdal.UseExceptions()url='<a href="https://noaa-ocs-nationalbathymetry-pds.s3.amazonaws.com/BlueTopo/BC26826R/BlueTopo_BC26826R_20241023.tiff'ds" rel="noreferrer" target="_blank">https://noaa-ocs-nationalbathymetry-pds.s3.amazonaws.com/BlueTopo/BC26826R/BlueTopo_BC26826R_20241023.tiff'ds</a> = gdal.Open(url)for band_id in range(ds.RasterCount): band = ds.GetRasterBand(band_id+1) rat = band.GetDefaultRAT() print(f"Band {band_id+1} has rat type {type(rat)}")Is there something I'm doing wrong? I've tried the various options for GDAL_DISABLE_READDIR_ON_OPEN, but they haven't changed the result.Thanks,Kirk Waters, PhD NOAA Office for Coastal ManagementApplied Sciences Program <a href="http://coast.noaa.gov/digitalcoast" rel="noreferrer" target="_blank">coast.noaa.gov/digitalcoast</a></blockquote></div></div>