Skip to main content
2 of 2
clarification
Devdatta Tengshe
  • 41.6k
  • 35
  • 144
  • 263

How to List Fields of a Featureclass in a FileGDB using ogrinfo

I have an ArcGIS File Geodatabase, and I know that there is a featureclass within it.

If I type: ogrinfo myfilegdb.gdb it lists the featureclasses within it.

I now want to just find out what are the field names & types of the Featureclass within it.

I looked at the documentation, and it says that -so should be used:

Summary Only: suppress listing of features, show only the summary information like projection, schema, feature count and extents.

But when I type: ogrinfo -so myfilegdb.gdb, It just shows me the listing of featureclasses & does not show me the schema.

How do I see the field names & types of the featureclass?

Devdatta Tengshe
  • 41.6k
  • 35
  • 144
  • 263