[gdal-dev] Issue with the STACIT usage examples

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Thu Nov 21 08:30:24 PST 2024


Hi Even,

The syntax of the alternative command is clearer for my mind, and it works for me with GDAL 3.11dev (OSGeo4W). I tried first GDAL 3.9.3 but it failed.

There is another minor inconvenience but I can live with it. I can get a list of subdatasets with
gdalinfo "STACIT:\"https://paituli.csc.fi/geoserver/ogc/stac/v1/search?collections=corine_land_cover_at_geocubes\""

However, the subdataset names on the list are not accepted as-is without small edits.
Does not work:
gdalinfo STACIT:"https://paituli.csc.fi/geoserver/ogc/stac/v1/search?collections=corine_land_cover_at_geocubes":asset=1000m
Works as edited:
gdalinfo "STACIT:\"https://paituli.csc.fi/geoserver/ogc/stac/v1/search?collections=corine_land_cover_at_geocubes\":asset=1000m"

-Jukka-



Lähettäjä: Even Rouault <even.rouault at spatialys.com>
Lähetetty: torstai 21. marraskuuta 2024 17.56
Vastaanottaja: Rahkonen Jukka <jukka.rahkonen at maanmittauslaitos.fi>; Daniel Evans <daniel.fred.evans at gmail.com>
Kopio: 'gdal-dev at lists.osgeo.org' (gdal-dev at lists.osgeo.org) <gdal-dev at lists.osgeo.org>
Aihe: Re: [gdal-dev] Issue with the STACIT usage examples

Jukka,


Is there something special in the STACIT driver that makes it trickier to use than WMS driver?

I don't think so. The STACIT driver uses the same type of string tokenizer than other drivers that use subdataset syntax. It's weird you need to escape &.  Would the shell be confused by the fact that there's an escaped double-quote character within the quoted string... ?

At least, just pasting the examples from the documentation page in a Bash shell works fine.

As an alternative, you can use:

gdalinfo -if STACIT "https://planetarycomputer.microsoft.com/api/stac/v1/search?collections=naip&bbox=-100,40,-99,41&datetime=2019-01-01T00:00:00Z%2F.."<https://planetarycomputer.microsoft.com/api/stac/v1/search?collections=naip&bbox=-100,40,-99,41&datetime=2019-01-01T00:00:00Z%2F..> -oo ASSET=image
Even

--

http://www.spatialys.com<http://www.spatialys.com/>

My software is free, but my time generally not.

Butcher of all kinds of standards, open or closed formats. At the end, this is just about bytes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241121/b59e6fc1/attachment-0001.htm>


More information about the gdal-dev mailing list