[gdal-dev] STACIT fail to open s3://..tif
Michael Sumner
mdsumner at gmail.com
Wed Aug 2 01:19:02 PDT 2023
Ok so I just did this in staticdataset.cpp and it works ... I'll follow up
on github.
else if (STARTS_WITH(osFilename.c_str(), "s3://"))
{
osRet = "/vsis3/";
osRet += osFilename.substr(strlen("s3://"));
}
Thanks!
On Wed, Aug 2, 2023 at 5:23 PM Michael Sumner <mdsumner at gmail.com> wrote:
> I'm using a derived subdataset dsn to try to open a STAC query:
>
> gdalinfo "STACIT:\"
> 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\
> ":asset=level3,collections=ga_ls_landcover_class_cyear_2"
>
> 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
> gdalinfo failed - unable to open 'STACIT:"
> 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
> ":asset=level3,collections=ga_ls_landcover_class_cyear_2'.
>
> 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).
>
> The .tif itself seems fine via the /vsis3/ syntax
>
> 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
>
>
> I've put the calls here in case email problems with the strings:
> https://gist.github.com/mdsumner/90f5b509c5cb32bc0f1a26c695baa0bf
>
> I'm using gdal dev GDAL 3.8.0dev-bba8edfc13, released 2023/08/01 (debug
> build)
>
> Thanks, Mike
>
>
> --
> Michael Sumner
> Software and Database Engineer
> Australian Antarctic Division
> Hobart, Australia
> e-mail: mdsumner at gmail.com
>
--
Michael Sumner
Software and Database Engineer
Australian Antarctic Division
Hobart, Australia
e-mail: mdsumner at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230802/2e859e62/attachment.htm>
More information about the gdal-dev
mailing list