The Ogr2Ogr doc says:
GetLayerDefinition a_layer_name” and “GetLayerMetadata a_layer_name” can be used as special SQL requests to get respectively the definition and metadata of a FileGDB table as XML content (only available in Geodatabases created with ArcGIS 10 or above)
I'm able to connect, since this works:
ogrinfo -so -q -nogeomtype /path/to/myfile.gdb
However when I try this:
ogr2ogr -dialect OpenFileGDB -sql "SELECT GetLayerMetadata(myfeatureclass)" /path/to/myfile.gdb
FAILURE: no source datasource provided
With ArcGIS Pro, I can see the metadata for the featureclass.
Are there any examples for this somewhere?