a/gdalinfo

gdalinfo program lists various information about a GDAL supported raster dataset.

https://gdal.org/programs/gdalinfo.html

Parameters:
Name Type Attributes Description
dataset TypeDefs.Dataset

Dataset

options Array <optional>

Options (https://gdal.org/programs/gdalinfo.html#description)

Returns:
Type:
Promise.<Object>

"Promise" returns various information about the raster dataset

Example
const Gdal = await initGdalJs();
const dataset = (await Gdal.open('data.tif')).datasets[0];
const info = await Gdal.gdalinfo(dataset);