tldr/pages/common/ogrinfo.md

21 lines
488 B
Markdown
Raw Normal View History

2019-10-29 15:36:20 +00:00
# ogrinfo
> List information about an OGR-supported data source.
> More information: <https://gdal.org/programs/ogrinfo.html>.
2022-02-27 13:50:07 +00:00
- List supported formats:
2019-10-29 15:36:20 +00:00
2022-02-27 13:50:07 +00:00
`ogrinfo --formats`
2019-10-29 15:36:20 +00:00
2022-02-27 13:50:07 +00:00
- List layers of a data source:
2019-10-29 15:36:20 +00:00
2022-02-27 13:50:07 +00:00
`ogrinfo {{path/to/input.gpkg}}`
2019-10-29 15:36:20 +00:00
2022-02-27 13:50:07 +00:00
- Get detailed information about a specific layer of a data source:
2019-10-29 15:36:20 +00:00
2022-02-27 13:50:07 +00:00
`ogrinfo {{path/to/input.gpkg}} {{layer_name}}`
- Only show summary information about a specific layer of a data source:
`ogrinfo -so {{path/to/input.gpkg}} {{layer_name}}`