Schematic datasets in a geodatabase in DB2
Schematic datasets are similar to feature datasets, but they contain a collection of schematic diagram templates and schematic feature classes. They are used to graphically visualize and manipulate network data.
Schematic datasets in ArcGIS Desktop
In the Catalog tree, schematic datasets have the following icon:
When you expand a schematic dataset, you can see the schematic diagrams it contains. These diagrams have the following icon:
The names of the schematic dataset and schematic diagram in a geodatabase in DB2 contain the database name, the name of the dataset owner, and the names of the dataset and diagram themselves.
Schematic datasets in an IBM DB2 database
The following tables are used to store information on schematic datasets.
The SCH_DATASET table contains one record for each schematic dataset created in the geodatabase. The ID field in this table is used to identify the associated feature and diagram tables and appears in those table names.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
Unique identifier of the schematic dataset The value in this field is the ID in the names of all the other schematic dataset tables except SCH_RELEASE and SCH_UNIQUEID. |
NOT NULL |
MAJOR |
INTEGER |
Release number of the dataset version |
NOT NULL |
MINOR |
INTEGER |
Minor release number of the dataset version; not used at this time |
NOT NULL |
BUGFIX |
INTEGER |
Patch or service pack number of the dataset version; not used at this time |
NOT NULL |
DBNAME |
VARCHAR(32) |
Name of the database in which the schematic dataset is stored |
|
OWNER |
VARCHAR(32) |
The user who created the schematic dataset |
|
NAME |
VARCHAR(128) |
The name of the schematic dataset |
NOT NULL |
LOCKINFO |
VARCHAR(38) |
Used by the Schematic Dataset Editor configuration tool to avoid conflicts when multiple users are making configuration changes concurrently |
|
BLOBS |
BLOB |
Stores the metadata for the schematic dataset |
The SCH_RELEASE table is not currently in use.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
MAJOR |
INTEGER |
Release number of the system tables |
NOT NULL |
MINOR |
INTEGER |
Minor release number of the system tables; not used at this time |
NOT NULL |
BUGFIX |
INTEGER |
Patch or service pack number of the system tables; not used at this time |
NOT NULL |
The SCH_UNIQUEID table provides unique identifiers for the indexes of schematic feature classes.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
The unique identifier used when creating new diagram templates for the object class |
NOT NULL |
DUMMY |
INTEGER |
Not currently in use |
This table stores the associations between the diagram templates and the feature types in a schematic dataset. This table is created when the schematic dataset is created.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
Uniquely identifies the relationship between a diagram template and feature class |
NOT NULL |
DIAGRAMCLASSID |
INTEGER |
Corresponds to the ID field in the SCH<ID>_DIACLASS table |
NOT NULL |
ELEMENTCLASSID |
INTEGER |
Corresponds to the ID field in the SCH<ID>_ELTCLASS table |
NOT NULL |
This table contains a list of all the data sources accessed by the schematic dataset. This table is created when the schematic dataset is created.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
Uniquely identifies a data source |
NOT NULL |
NAME |
VARCHAR(255) |
Name of the data source |
NOT NULL |
CLSID |
VARCHAR(38) |
Class ID of the data source component |
NOT NULL |
LABEL |
VARCHAR(255) |
Not currently in use |
|
CONNECTION |
BLOB |
Parameters of the connection; used to persist and restore the connection |
NOT NULL |
This table tracks all the diagram templates present in a schematic dataset. It contains a row for each diagram template created.
This table is created when the schematic dataset is created.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
Uniquely identifies a diagram template |
NOT NULL |
OBJECTCLASSID |
INTEGER |
Corresponds to the ID field in the SCH_UNIQUEID table |
NOT NULL |
CREATIONNAME |
VARCHAR(255) |
Name of the diagram class when the table is created |
NOT NULL |
NAME |
VARCHAR(255) |
Current name of the diagram class (if it was changed from the original name) Corresponds to the diagram template name in the SCH<ID>D_<DIAGRAM_TEMPLATE_NAME> table name |
NOT NULL |
PARENTID |
INTEGER |
ID of the parent diagram class entry |
NOT NULL |
DATASOURCEID |
INTEGER |
Corresponds to the ID field of SCH<ID>_DATASRC; only used for a diagram template based on a custom query |
|
BUILDERCLSID |
VARCHAR(38) |
Class ID for the schema builder (XML, network dataset, or standard) |
|
LINKERCLSID |
VARCHAR(38) |
Component managing feature to element relationship method |
|
ALGORITHMCLSID |
VARCHAR(38) |
Class ID of the algorithm that is automatically applied to diagrams of this type |
|
BLOBS |
BLOB |
Stores the diagram class definition parameters (builder properties, custom query, default layer properties, attributes, algorithms that are available for diagrams based on this type and their parameters, default node class, spatial reference) |
This table maintains a list of all the feature classes for each dataset. This table is created when the schematic dataset is created. For every row in this table, one SCH<ID>E_<FEATURE_CLASS_NAME> and one SCH<ID>A_<FEATURE_CLASS_NAME> table are created.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
Uniquely identifies a schematic feature class |
NOT NULL |
OBJECTCLASSID |
INTEGER |
Corresponds to the ID in the GDB_ITEMS table |
NOT NULL |
CREATIONNAME |
VARCHAR(255) |
Name of the schematic feature class when the table is created |
NOT NULL |
NAME |
VARCHAR(255) |
Current name of the schematic feature class (if it changed) Corresponds to the feature class name in the SCH<ID>E_<FEATURE_CLASS_NAME> and SCH<ID>A_<FEATURE_CLASS_NAME> table names |
NOT NULL |
PARENTID |
INTEGER |
ID of the parent element class entry |
NOT NULL |
ELEMENTTYPE |
INTEGER |
Value specifying the type of element (such as node, link, node-on-link, or sublink) |
NOT NULL |
RELATIOINCLSID |
VARCHAR(38) |
Relationship to a feature class |
|
ASSOCIATEDSID |
INTEGER |
Data source ID of related feature class |
|
ASSOCIATEDOCID |
INTEGER |
ID of the related feature classes from the GDB_ITEMS table |
|
DATASOURCEID |
INTEGER |
Corresponds to the ID field in the SCH<ID>_DATASRC table; only used for a schematic feature class based on a custom query |
|
BLOBS |
BLOB |
Stores the schematic feature class definition parameters (such as attributes and custom query) |
This table maintains a list of all the folders created in a dataset. This table is created when the schematic dataset is created.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
Unique identifier for the folder |
NOT NULL |
NAME |
VARCHAR(255) |
Name of the folder |
NOT NULL |
PFID |
INTEGER |
ID of the parent folder if nested |
NOT NULL |
XML |
BLOB |
Stores the metadata of the folder |
This table tracks the associations between a schematic feature and GIS feature. It is only used when items are associated to a schematic record in compliance with rules defined in the SCH<ID>R_<DIAGRAM_TEMPLATE_NAME> table.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
Uniquely identifies the association between a schematic feature and a GIS feature |
NOT NULL |
SCHEMATICID |
INTEGER |
Unique ID for a schematic feature |
NOT NULL |
DATASOURCEID |
INTEGER |
Corresponds to the ID field in the SCH<ID>_DATASRC table |
|
UCID |
INTEGER |
Class ID of the related feature |
|
UOID |
INTEGER |
ObjectID of the related feature |
|
USID |
INTEGER |
ID of the element in the related feature; only applicable to related features that are complex edges Identifies the segment ID on the related complex edge feature; 0 for all other kinds of related features |
|
UGUID |
INTEGER |
GUID of the related feature (if one exists) |
This table stores a list of all diagrams created using a particular diagram template (the one indicated by the <DIAGRAM_TEMPLATE_NAME>). This table is created when its associated diagram template is created and contains one row per diagram.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
Uniquely identifies a diagram |
NOT NULL |
NAME |
VARCHAR(255) |
Name of the diagram |
NOT NULL |
FOLDERID |
INTEGER |
Corresponds to the ID field in the SCH<ID>_FOLDER table |
NOT NULL |
DIAGRAMCLASSID |
INTEGER |
Corresponds to SCH<ID>_DIACLASS table's OBJECTCLASSID field |
NOT NULL |
LASTUPDATE |
TIMESTAMP |
Date and time of last user update |
|
VERSION |
VARCHAR(255) |
If generated from versioned data, lists which version |
|
CREATIONDATE |
TIMESTAMP |
Date and time the diagram was created |
|
CREATOR |
VARCHAR(100) |
Name of the user who created the diagram |
|
UPDATEDBY |
VARCHAR(100) |
Name of the user who last updated the diagram |
|
BLOBS |
BLOB |
Stores the diagram parameters (such as a list of the end and root nodes and CLASSID of the last algorithm executed before saving) |
|
LOCKSTATUS |
INTEGER |
Indicates if the diagram is currently locked or edited by a user |
|
LASTMODIFICATION |
TIMESTAMP |
Date and time the diagram was last modified |
|
MODIFIEDBY |
VARCHAR(100) |
User who last modified the diagram |
This table stores a list of all the schematic features created using a schematic feature class and used in a diagram.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
Uniquely identifies a schematic feature; primary key |
NOT NULL |
DIAGRAMCLASSID |
INTEGER |
Foreign key to the OBJECTCLASSID field in the SCH<ID>_DIACLASS table |
NOT NULL |
DIAGRAMOBJECTID |
INTEGER |
Foreign key to the ID field in the SCH<ID>D_<Diagram_Template_Name> table |
NOT NULL |
SCHEMATICID |
VARCHAR(128) |
Uniquely identifies the schematic feature in the diagram; consists of UCID, UOID, and USID when the schematic feature is created by the standard builder |
NOT NULL |
ISINITIAL |
INTEGER |
Indicates whether this schematic feature was part of the initial creation list |
NOT NULL |
ISDISPLAYED |
INTEGER |
Indicates whether this schematic feature is currently displayed |
NOT NULL |
RELATIONOBJECTID |
INTEGER |
ObjectID of related standard feature or object in relationship |
|
RELATIONCLASSID |
INTEGER |
Class ID of related standard feature or object in relationship |
|
DATASOURCEID |
INTEGER |
Corresponds to the ID field in the SCH<ID>_DATASRC table |
|
UCID |
INTEGER |
Class ID of corresponding feature or object |
|
UOID |
INTEGER |
Object ID of corresponding feature or object |
|
USID |
INTEGER |
The ID of the element in the corresponding feature; only applicable to corresponding features that are complex edges. Identifies the segment ID on the corresponding complex edge feature. 0 for all other kinds of corresponding features. |
|
UPDATESTATUS | INTEGER | Specifies if a feature is new as a result of the last update | |
SUBTYPE |
INTEGER |
Subtype of feature |
|
PROPERTYSET |
BLOB |
Holds attribute information |
|
INITIALX |
DECIMAL(31) |
X position of feature when created; only applicable to node schematic feature type |
|
INITIALY |
DECIMAL(31) |
Y position of feature when created; only applicable to node schematic feature type |
|
INITIALPOSITION |
DECIMAL(31) |
Initial position of feature on its related reference schematic link; only applicable to node-on-link schematic feature type |
|
REFERENCELINK | VARCHAR(128) | SCHEMATICID of the reference schematic link with which the feature is associated; only applicable to node-on-link or sublink schematic feature types | |
ROTATION |
DECIMAL(31) |
Symbol rotation of feature; only applicable to node or node-on-link schematic feature types |
|
FROMTID | VARCHAR(128) | SCHEMATICID of the feature's origin node; only applicable to link or sublink schematic feature types | |
TOTID | VARCHAR(128) | SCHEMATICID of the feature's end node; only applicable to link or sublink schematic feature types | |
FROMPORT | INTEGER | Port number on the feature's origin node symbol that must be used to connect the feature; only applicable to link or sublink schematic feature types | |
TOPORT | INTEGER | Port number on the feature's end node symbol that must be used to connect the feature; only applicable to link or sublink schematic feature types | |
FLOWDIRECTION | INTEGER | Indicates the flow direction; only applicable to link or sublink schematic feature types | |
UGUID |
CHARACTER(38) |
GUID of the related feature (if one exists) |
|
SHAPE |
ST_GEOMETRY |
Geometry of the schematic feature |
This table stores a list of all the schematic rules configured on a diagram template. This table is created when its associated diagram template is created but is only populated if rules are configured.
Field name |
Field type |
Description |
Null? |
---|---|---|---|
ID |
INTEGER |
Uniquely identifies relationship rule |
NOT NULL |
ORDERNUMBER |
INTEGER |
Indicates in which order rules will be run |
NOT NULL |
ACTIVE |
INTEGER |
Indicates whether or not the rule is active |
NOT NULL |
CLSID |
VARCHAR(38) |
Class ID of the rule |
NOT NULL |
PROPERTYSET |
BLOB |
Rule properties |
View a diagram of a schematic dataset in DB2.
You need Adobe Acrobat Reader to open the file.
Dashed lines indicate implicit relationships between columns.
Schematic diagrams in XML
Though you cannot export an entire schematic dataset to XML at once, you can export individual schematic diagrams to an XML document. The following is a partial example of such a file:
<sch:Diagrams xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:esri="http://www.esri.com/schemas/ArcGIS/10.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://www.esri.com/schemas/ArcGIS/10.0/Schematics"> <Diagram DiagramTemplateName="GeoSchematic" DiagramName="Feeder 0801-Rice Creek" EnforceDiagram TemplateName="false" EnforceDiagramName="false" Version="sde.DEFAULT"> <Features> <NodeFeature> <FeatureClassName>TransformerBank</FeatureClassName> <ExternalUniqueID>96-111-0</ExternalUniqueID> <DatasourceName>arcsde db2 gdb</DatasourceName> <UCID>96</UCID> <UOID>111</UOID> <SUBTYPE>0</SUBTYPE> <UPDATESTATUS>1</UPDATESTATUS> <InitialX>376834.28999999911</InitialX> <InitialY>1571795.700000003</InitialY> <ROTATION>0</ROTATION> </NodeFeature> <LinkFeature> <FeatureClassName>PrimaryLine</FeatureClassName> <ExternalUniqueID>91-114-0</ExternalUniqueID> <DatasourceName>arcsde db2 gdb</DatasourceName> <UCID>91</UCID> <UOID>114</UOID> <SUBTYPE>0</SUBTYPE> <UPDATESTATUS>1</UPDATESTATUS> <FromNode>97-111-0</FromNode> <ToNode>96-184-0</ToNode> <PropertySet xsi:type="esri:PropertySet"> <PropertyArray xsi:type="esri:ArrayOfPropertySetProperty"> <PropertySetProperty xsi:type="esri:PropertySetProperty"> <Key>placement</Key> <Value xsi:type="xs:int">0</Value> </PropertySetProperty> <PropertyArray> </PropertySet> <Vertices /> </LinkFeature> </Features> <Datasources> <Datasource> <NameString>arcsde db2 gdb</NameString> <WorkSpaceInfo xsi:type="esri:WorkspaceName"> <PathName>c:\Documents and Settings\gis\ Application Data\ESRI\Desktop10.0\ArcCatalog\sdegdb on db2</PathName> <BrowseName>ArcSDE Data</BrowseName> <WorkspaceFactoryProgID>esriDataSourcesGDB.SdeWorkspaceFactory.1</WorkspaceFactoryProgID> <WorkspaceType>esriRemoteDatabaseWorkspace</WorkspaceType> <Connection Properties xsi:type="esri:PropertySet"> <PropertyArray xsi:type="esri:ArrayOfPropertySetProperty"> <PropertySetProperty xsi:type="esri:PropertySetProperty"> <Key>SERVER</Key> <Value xsi:type="xs:string">badwater</Value> </PropertySetProperty> <PropertySetProperty xsi:type="esri:PropertySetProperty"> <Key>INSTANCE</Key> <Value xsi:type="xs:string">sde:db2</Value> </PropertySetProperty> <PropertySetProperty xsi:type="esri:PropertySetProperty"> <Key>DATABASE</Key> <Value xsi:type="xs:string">db2gdb</Value> </PropertySetProperty> <PropertySetProperty xsi:type="esri:PropertySetProperty"> <Key>AUTHENTICATION_MODE</Key> <Value xsi:type="xs:string">DBMS</Value> </PropertySetProperty> <PropertySetProperty xsi:type="esri:PropertySetProperty"> <Key>USER</Key> <Value xsi:type="xs:string">gis</Value> </PropertySetProperty> <PropertySetProperty xsi:type="esri:PropertySetProperty"> <Key>PASSWORD</Key> <Value xsi:type="xs:base64Binary">AgAAAA4AAACwUR6vjWUTw2sRnEhHAA==</Value> </PropertySetProperty> <PropertySetProperty xsi:type="esri:PropertySetProperty"> <Key>VERSION</Key> <Value xsi:type="xs:string">sde.DEFAULT</Value> </PropertySetProperty> </PropertyArray> </ConnectionProperties> </WorkSpaceInfo> </Datasource> </Datasources> </Diagram> </sch:Diagrams>