Re: [gdal-dev] Open a string (json) as STACIT in python

2024-03-11 Thread Michael Smith via gdal-dev
Works perfectly just had to do myds=gdal.OpenEx("STACIT:/vsimem/temp_stacit.json") Mike On 3/11/24, 2:34 PM, "gdal-dev on behalf of Even Rouault via gdal-dev" mailto:gdal-dev-boun...@lists.osgeo.org> on behalf of gdal-dev@lists.osgeo.org > wrote: Mike,

Re: [gdal-dev] Open a string (json) as STACIT in python

2024-03-11 Thread Even Rouault via gdal-dev
Mike, Yes, the STACIT driver requires either a filename or STACIT:filename, and doesn't support passing the content of the file in the connection string An easy workaround is to do: gdal.FileFromMemBuffer("/vsimem/temp_stacit.json", stac_string) myds=gdal.OpenEx("/vsimem/temp_stacit.json")

[gdal-dev] Open a string (json) as STACIT in python

2024-03-11 Thread Smith, Michael ERDC-RDE-CRREL-NH CIV via gdal-dev
I’m building a stac item collection programmatically and I want to open that item collection in gdal using the python bindings. It all works if I save to a file or from a url (and I prefix with “STACIT:”) but I cannot seem to be able to open a variable containing json as STACIT. I have tried