Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pcace opened this issue Feb 3, 2025 · 0 comments
Open

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

pcace opened this issue Feb 3, 2025 · 0 comments

Comments

@pcace
Copy link

pcace commented Feb 3, 2025

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant