Skip to content

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

@pcace

Description

@pcace

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions