[gdal-dev] Fwd: Grep gdalinfo subdataset

1520 gis juliermeopensourcedeveloper at gmail.com
Tue Dec 1 06:07:49 PST 2020


---------- Forwarded message ---------
From: 1520 gis <juliermeopensourcedeveloper at gmail.com>
Date: Fri, Nov 27, 2020 at 3:14 PM
Subject: Grep gdalinfo subdataset
To: <gdal-dev at lists.osgeo.org>


Hi all,

I am trying to grep the SUBDATASET_X_NAME in gdalinfo.
I only need the WCS:url

If I grep the subdataset [1], the string slice "SUBDATASET_5_NAME" comes
together. I would like to know if I can get only WCS:url by using any
gdalinfo options.

I tried running [2] , but no success. Is there any gdalinfo option which
response is the same as in [1]?

Thank you very much for your time in advance.

Kind regards
Julierme


[1]
gdalinfo "WCS:
http://demo.geo-solutions.it/geoserver/ows?service=WCS&version=2.0.1&request=GetCapabilities
" | grep 'nurc__Img_Sample'

[2]

gdalinfo -sd nurc__Img_Sample "WCS:
http://demo.geo-solutions.it/geoserver/ows?service=WCS&version=2.0.1&request=GetCapabilities
"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201201/b45c6c09/attachment.html>


More information about the gdal-dev mailing list