gdal3.js icon indicating copy to clipboard operation
gdal3.js copied to clipboard

use Gdal.getinfo() to query wms / wfs layer info?

Open pcace opened this issue 10 months ago • 0 comments

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)

pcace avatar Feb 03 '25 14:02 pcace