Export an enterprise geodatabase schema and create new FGDB programmatically

1678
2
Jump to solution
05-05-2019 05:50 PM
MarkMindlin
Occasional Contributor III

Hi,

We need to export a feature dataset (including number of feature classes) and, not in the dataset, number of tables, to a file geodatabase (FGDB).

The source is some data in memory (not in memory feature class) on runtime. The target - a FGDB created programmatically. 

And the schema must be taken from a current enterprise database (meaning we only export what current schema contains)

We cannot use a FGDB template.

Is any ArcObjects API able to do it?

Something like 

1) Exporting a geodatabase schema to an XML workspace document

2) Importing a geodatabase schema from an XML workspace document

3) ...

Any other ideas will be appreciated.

C#, ArcGIS 10.6.1, no Python

0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi Mark,

We use IGdbXmlImport and IGdbXmlExport for schema importing/exporting. But we work with personal or file geodatabases. I have not tried to use them on enterprise database.

It could be some problems if your database contains Schematic stuff.

http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#Export_datasets_to_an_xml_workspace_...

View solution in original post

2 Replies
GKmieliauskas
Esri Regular Contributor

Hi Mark,

We use IGdbXmlImport and IGdbXmlExport for schema importing/exporting. But we work with personal or file geodatabases. I have not tried to use them on enterprise database.

It could be some problems if your database contains Schematic stuff.

http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#Export_datasets_to_an_xml_workspace_...

MarkMindlin
Occasional Contributor III

Thanks Gintautas.

0 Kudos