The page opened at this step (figure 64-2) is intended for setting correspondence between table fields of MID file being imported and fields of GDB tables linked with map feature types. If no GDB table was selected at the previous step, the step of setting links is omitted.
Figure 64-2. Import from MIF file, page “Setting links of components”
All GDB tables selected at the previous step, existing tables as well as the ones created in import are enumerated in the pane List of tables. In the column “Table” names of these tables are given.
Character “+” in the column “Link” indicates that in the course of import a link should be set between imported map features and imported table records corresponding to them. If there is no character “+”, table records will be still imported, but links with features will not be set. To change values in this column context menu commands Link and Do not Link of the pane List of tables are used.
In the column “Conflicts” one of the two possible methods of resolving conflicts of records in the course of import is indicated. Breaking the requirement of uniqueness of record field values with the specified attribute “Unique” is understood as a conflict. Context menu commands Refuse Conflicting Records / Update Conflicting Records permit for selection of method of resolving conflicts. If the method Refuse is set, import of record causing conflict is not performed. If Update is set, record being imported replaces the record with which the conflict occurred.
The pane List of fields contains a list of all table fields in MID file. Names of these fields are given in the column “Name in file”. A checkbox to the left of the field name is the sign enabling import of values of the corresponding field. To enable import of selected field one should use the item Import of the pane context menu or just click on this checkbox.
For every GDB table selected at the previous settings step at least one field for import should be chosen.
In the column “Type” types of table data used in ObjectLand which correspond to field types of MID file table are indicated.
The contents of other columns depends on GDB table selected in the pane List of tables.
The column “Name in table” should contain the name of the corresponding field in selected GDB table for every MID file field being imported.
Fields “Indexed”, “Unique”, “Not empty” and “Encripted” show values of the corresponding field attributes of GDB table.
To specify a name and attributes of table field it is necessary to select the corresponding line in the list of fields and perform the context menu command Change. A dialog box “Setting field import” shown at figure 64-3 will be opened.
Figure 64-3. Dialog box “Setting field import”
In case of import to the existing table the user can only choose in the list one of the table fields which data type corresponds to the field being imported. Values of attributes are automatically selected from description of this table field and cannot be changed. When creating a new table, names of its fields coincide with names of fields in the file by default. Values of attributes “Indexed” and “Unique” are set by default according to description of the structure of table being imported which is present in MIF file. In this case values of all attributes can be changed at the user's request.
The checkbox Diagnostics allows extending the set of messages which will be put in report file when performing import. If the box is cleared, only messages about incorrectness of features being imported and also total data about results of performing import will be displayed. If the box is checked, messages about incorrect format of table records and about errors of performing linking of records with features are also shown.