Forrest logo
back to the ogrinfo tool

ogrinfo:tldr:01c95

ogrinfo: Show summary of all layers of the data source.
$ ogrinfo -so -al ${path-to-input-gpkg}
try on your machine

The command "ogrinfo" is a utility in the GDAL (Geospatial Data Abstraction Library) package used for accessing geospatial data. Here is a breakdown of the command and its parameters:

  • "ogrinfo": The name of the command itself.
  • "-so": This option stands for "summary only" and tells ogrinfo to display only summary information about the input data source.
  • "-al": This option stands for "all layers" and tells ogrinfo to display information about all the layers within the input data source.
  • "${path-to-input-gpkg}": This is a placeholder indicating that you need to provide the actual file path to the input Geopackage file.

When you execute this command, it will read the specified Geopackage file and display a summary of its contents, including information about all the layers present in the file.

Note: Make sure you have GDAL installed and added to your system's PATH before using this command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ogrinfo tool