The ogrinfo program lists various information about an OGR-supported data source to stdout (the terminal). By executing SQL statements it is also possible to edit data.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dataset |
TypeDefs.Dataset
|
Dataset |
|
options |
Array
|
<optional> |
Options (https://gdal.org/programs/ogrinfo.html#description) |
Returns:
- Type:
-
Promise.<Object>
"Promise" returns information about the OGR-supported data source
Example
const Gdal = await initGdalJs();
const dataset = (await Gdal.open('data.geojson')).datasets[0];
const info = await Gdal.ogrinfo(dataset);