gdal3.js
gdal3.js copied to clipboard
use Gdal.getinfo() to query wms / wfs layer info?
Hi,
using gdal locally i can do something like this:
gdalinfo "https://gdi.berlin.de/services/wms/okg?request=GetCapabilities&service=wms&service=wms"
which returns the sublayers of the wms source.
how can i do this with this gdal implementation here?
any help would be great!!
Thanks a lot!
PS: i guess it also does not work with geotiffs?
const u = '/vsicurl/https://github.com/mommermi/geotiff_sample/blob/master/sample.tif'
const r = await Gdal.open(u)
const firstDataset = r.datasets[0]
const info = await Gdal.gdalinfo(firstDataset)
console.log('DEBUG', info)