[gdal-dev] gdalinfo and WMT_MS_Capabilities: how to get Dimension and its Extent?

Even Rouault even.rouault at spatialys.com
Sat Mar 2 09:53:00 PST 2024


Andrea,
> if I run "gdalinfo -json WMSURL -sd 1", I can read a lot of info about 
> it, but I do not see Dimension and its Extent in the json output 
> (below an example from WMS request).
>
> <Dimension name="time" units="ISO8601"/>
> <Extent name="time" 
> default="2024-03-01T00:00:00Z">2024-01-01T00:00:00.000Z,2024-01-02T00:00:00.000Z,2024-01-03T00:00:00.000Z,2024-01-04T00:00:00.000Z</Extent>
>
> I would like to have this, to create a pipeline automatic testing.
>
> Is there a way to read these informations using gdalinfo or some other 
> gdal cli utilities.

I don't think so. You'll have to issue the GetCapabilities request and 
parse its output by yourself

Even

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240302/32f3fffa/attachment.htm>


More information about the gdal-dev mailing list