From 90cc612c6f5805c3374f36e37e6625a1d2020cb7 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 7 Oct 2024 16:55:59 +0200 Subject: [PATCH] GTiff: use main dataset GetSiblingFiles() for overviews Fixes https://github.com/cogeotiff/rio-tiler/issues/697 --- frmts/gtiff/gtiffdataset_read.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frmts/gtiff/gtiffdataset_read.cpp b/frmts/gtiff/gtiffdataset_read.cpp index f7b2db7644ae..0a1d467d8ad0 100644 --- a/frmts/gtiff/gtiffdataset_read.cpp +++ b/frmts/gtiff/gtiffdataset_read.cpp @@ -5835,6 +5835,10 @@ CSLConstList GTiffDataset::GetSiblingFiles() { return oOvManager.GetSiblingFiles(); } + if (m_poBaseDS) + { + return m_poBaseDS->GetSiblingFiles(); + } m_bHasGotSiblingFiles = true; const int nMaxFiles =