Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Export Modular ArcGIS Schemas
In Enterprise Architect, in addition to exporting your entire ArcGIS workspace, you can also export partial schemas. This is useful if you have a large geodatabase schema, as might be defined in an industry reference model. You might require the entire schema in some situations, but only require small parts of it for particular spatial applications, such as field data collection. In such a scenario, you would want to export a schema that contains only the Feature Classes, Tables and Domains that your field data application uses – without duplicating parts of your original schema model. You use the «ArcGISSchemaView» stereotyped Package for this purpose.
An «ArcGISSchemaView» Package is modeled as a subPackage of an ArcGIS Workspace Package. You can define any number of «ArcGISSchemaView» Packages - each representing a different subset of the geodatabase schema. You specify which parts of the schema are included by drawing a UML Dependency connector from the «ArcGISSchemViewa» Package to each included Package. When you export the «ArcGISSchemaView» Package, the system includes any other Packages that your included Packages depend on (via Dependency connectors).
This figure shows a partial schema that includes only one of the three Feature Datasets from the complete schema.
Create an ArcGISSchema Package
Step |
Action |
See also |
---|---|---|
1 |
Create or open an ArcGIS diagram within your ArcGIS Workspace.
|
|
2 |
Drag the ArcGIS Schema View icon from the Core Diagram Toolbox onto your diagram. A prompt displays to enter the Package name.
|
|
3 |
Type in a meaningful Package name and click on the OK button.
|
|
4 |
Drag onto the diagram any other Packages that you want to include in the exported schema. (You could achieve the same result using the child diagram of the «ArcGISSchemaView» Package to draw the included Packages).
|
|
5 |
Draw a Dependency connector from the «ArcGISSchemaView» Package to each of the other Packages.
|
|
Notes
• | Defining the Dependency relationships on a diagram is convenient, but not necessary; as long as the dependencies are defined in the model – irrespective of whether they exist on a diagram – the ArcGIS schema exporter will use them |
• | You can arrange your dependency diagrams in whatever part of the ArcGIS Workspace seems appropriate – the diagrams can reside under the «ArcGISSchemaView» Package itself or under any other element within the ArcGIS Workspace |
Export an ArcGIS Schema View for use with ArcCatalog
Step |
Action |
See also |
---|---|---|
1 |
Select the ArcGIS Schema View Package in a diagram or in the Project Browser.
|
|
2 |
Right-click and select Extensions | ArcGIS | Export to ArcGIS Workspace XML.
|
|
3 |
Identify the target file and click on the Export button. The system generates a Workspace XML document containing only the elements associated with the ArcGIS Schema View package.
|
|
Which related elements are included when you export an ArcGIS Schema View Package?
The following rules apply when you export an ArcGIS Schema View Package:
• | Dependencies are modeled using the UML Dependency connector |
• | All elements of a Package that the ArcGIS Schema View depends on (directly or indirectly) are included in the generated schema |
• | All fields inherited from Abstract Classes by included elements are exported, regardless of the Package in which the Abstract Classes reside |
• | All Coded Value Domain elements to which included elements refer are exported, regardless of the Package in which the Coded Value Domain elements reside |
• | If an ArcGIS Schema View Package depends on one or more subPackages of a Feature Dataset Package, the Feature Dataset is exported with only those elements contained in the linked subPackages |
• | If a field of an included element refers to a Coded Value Domain element, that Coded Value Domain element is exported, irrespective of whether the ArcGIS Schema View Package has an explicit dependency on the Coded Value Domain element's Package |
• | If an included element has a Relationship Class connector to another element X AND element X is not already included by the ArcGIS Schema View, neither element X nor the Relationship Class connector are exported; the log file will hold a list of names of the Relationship Class connectors that, for this reason, are not exported |
Examples of modeling partial schemas
Consider this complete Workspace, which includes three Feature Datasets named A, B and C, and three Packages of Coded Value Domains named DomainsA, DomainsB and DomainsC:
The corresponding model hierarchy in the Project Browser looks like this:
Assume that we want to export only Feature Dataset A and its required elements. We could model the Schema as a partial schema that includes a single Feature Dataset, as shown:
(This diagram is equivalent to the first diagram provided at the start of the topic.) Assuming that Point A depends on no other elements, the resulting schema would include only FeatureDataset A with its Feature Class, Point A.
Now assume that Point A inherits from the Abstract Class AbstractClassB (defined in FeatureDataset Package B) and that one of A's fields has type CodedValueDomainA1 defined in the DomainsA Package (as in the model diagram below). Now, the same Partial Schema model above would result in an exported schema that included the fields of AbstractClassB and CodedValueDomainA1, even though Partial Schema A does not explicitly depend on Package B or Package DomainsA, because partial schemas automatically include elements that are related by inheritance or are referred to by field types. The exporter thus helps you to generate valid ArcGIS schemas by including such required elements.
If we wanted to include all CodedValueDomains in DomainsA and all Feature Classes in FeatureDataset B (including any domains they depended on), we could model this situation to include entire Packages of elements in a partial schema via direct and indirect UML Dependency connectors, as shown.
Finally, let's assume we want to create a partial schema that includes only the elements in NestedPackage1. We model the scenario as a partial schema Package that refers to nested Packages within a Feature Dataset.
The resulting schema would include a Feature Dataset named C that contained all elements within NestedPackage1. The elements in NestedPackage2 would be excluded as would PolygonC (assuming no explicit relationships existed with the elements of NestedPackage1).