Examples (7)
List supported formats
ogrinfo --formatsList layers of a data source
ogrinfo path/to/input.gpkgGet detailed information about a specific layer of a data source
ogrinfo path/to/input.gpkg layer_nameShow summary information about a specific layer of a data source
ogrinfo -so path/to/input.gpkg layer_nameShow summary of all layers of the data source
ogrinfo -so -al path/to/input.gpkgShow detailed information of features matching a condition
ogrinfo -where 'attribute_name > 42' path/to/input.gpkg layer_nameUpdate a layer in the data source with SQL
ogrinfo path/to/input.geojson -dialect SQLite -sql "UPDATE input SET attribute_name = 'foo'"made by @shridhargupta | data from tldr-pages