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
It says: FAILURE: no source datasource provided
With ArcGIS Pro, I can see the metadata for the featureclass.
Are there any examples for this somewhere?
ogrinfo -sql "SELECT GetLayerMetadata myfeatureclass" /path/to/myfile.gdb
. Does that throw an error?()
, nor about select. This works for meogrinfo -sql "GetLayerMetadata counties" TemplateData.gdb
. Usage example can be found from the GDAL autotests github.com/OSGeo/gdal/blob/master/autotest/ogr/….SELECT
. Think aboutCREATE TABLE
etc.