3

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?

1 Answer 1

6

Just giving -so is not enough. You also need to specify the featureclass name.

If you type ogrinfo -so myfilegdb.gdb Export_Output where Export_Output is the name of the featureclass, then you should see all the summary of this featureclass.

1
  • In case of a shapefile, the shapename has to be repeated as layername, e.g. ogrinfo -so myshape.shp myshape. Alternatively use the -al option for all layers. Can be confusing, will suggest that in case of a single layer this layer's info should be displayed even when no layer is specified.
    – Jan
    Commented Apr 9, 2022 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.