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.roua...@spatialys.com>
Lähetetty: torstai 21. marraskuuta 2024 17.56
Vastaanottaja: Rahkonen Jukka <jukka.rahko...@maanmittauslaitos.fi>; Daniel 
Evans <daniel.fred.ev...@gmail.com>
Kopio: 'gdal-dev@lists.osgeo.org' (gdal-dev@lists.osgeo.org) 
<gdal-dev@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.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to