<div dir="ltr">Ok so I just did this in staticdataset.cpp and it works ... I'll follow up on github. <div><br></div><div> else if (STARTS_WITH(osFilename.c_str(), "s3://"))<br> {<br> osRet = "/vsis3/";<br> osRet += osFilename.substr(strlen("s3://"));<br> }<br></div><div><br></div><div><br></div><div>Thanks!</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 2, 2023 at 5:23 PM Michael Sumner <<a href="mailto:mdsumner@gmail.com">mdsumner@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm using a derived subdataset dsn to try to open a STAC query: <div><br></div><div><div>gdalinfo "STACIT:\"<a href="https://explorer.sandbox.dea.ga.gov.au/stac/search?bbox=122.1,-18.28,122.48,-17.91&datetime=2020-01-01/2020-02-29%5C" target="_blank">https://explorer.sandbox.dea.ga.gov.au/stac/search?bbox=122.1,-18.28,122.48,-17.91&datetime=2020-01-01/2020-02-29\</a>":asset=level3,collections=ga_ls_landcover_class_cyear_2"<br><br>ERROR 1: Cannot open s3://dea-public-data/derivative/ga_ls_landcover_class_cyear_2/1-0-0/2020/x_-11/y_-20/ga_ls_landcover_class_cyear_2_1-0-0_au_x-11y-20_2020-01-01_level3.tif to retrieve band characteristics<br>gdalinfo failed - unable to open 'STACIT:"<a href="https://explorer.sandbox.dea.ga.gov.au/stac/search?bbox=122.1,-18.28,122.48,-17.91&datetime=2020-01-01/2020-02-29" target="_blank">https://explorer.sandbox.dea.ga.gov.au/stac/search?bbox=122.1,-18.28,122.48,-17.91&datetime=2020-01-01/2020-02-29</a>":asset=level3,collections=ga_ls_landcover_class_cyear_2'.<br></div><div><br></div><div>Am I doing something wrong with the STAC approach? Similar tasks are working well with Microsoft Planetary Computer (but I'm generally out of my depth with STAC itself). </div><div><br></div><div>The .tif itself seems fine via the /vsis3/ syntax</div><div><br></div><div>gdalinfo /vsis3/dea-public-data/derivative/ga_ls_landcover_class_cyear_2/1-0-0/2020/x_-11/y_-20/ga_ls_landcover_class_cyear_2_1-0-0_au_x-11y-20_2020-01-01_level3.tif <br></div><div><br></div><div>I've put the calls here in case email problems with the strings: <a href="https://gist.github.com/mdsumner/90f5b509c5cb32bc0f1a26c695baa0bf" target="_blank">https://gist.github.com/mdsumner/90f5b509c5cb32bc0f1a26c695baa0bf</a></div><div><br></div><div>I'm using gdal dev GDAL 3.8.0dev-bba8edfc13, released 2023/08/01 (debug build)</div><div><br></div><div>Thanks, Mike</div><div><br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Michael Sumner<br>Software and Database Engineer<br>Australian Antarctic Division<br>Hobart, Australia<br>e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank">mdsumner@gmail.com</a></div></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Michael Sumner<br>Software and Database Engineer<br>Australian Antarctic Division<br>Hobart, Australia<br>e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank">mdsumner@gmail.com</a></div>