In the previous posts, I explained how to enable a Topobase document for import with the Oracle data import tool (here) and how to link domains (here). In this article you will see how to link feature classes.
The external Oracle schema SIMROSEWATER has the table WMAIN that stores the geometry and attribute data of the water pipes. You will migrate the pipe attribute data to the table WA_PIPE in the Topobase schema (ATORAMIG).
Open the Oracle data import tool. Select the mapping definition that you created in the previous post, and click Edit. The Edit Mapping Definition window is displayed.
In the Feature Classes tab, select WMAIN under Source Feature Classes for SIMROSEWATER. Select WA_PIPE under Final Feature Classes for ATORAMIG. Click Link feature classes to link the tables.
Now you will link the attributes. Select the Feature Attributes tab. Note the columns of the WMAIN table on the left side and the columns of the WA_PIPE feature class on the right side.
It is recommended that you create all the columns that don’t exist in WA_PIPE by clicking Copy columns. Once the new columns are created you can link columns automatically by clicking Autolink. In the Auto Link specify that you want to link the columns with the same name.
Finally you can link manually the columns that were not linked by clicking Link attributes.
Now you will link the columns that have a relation with a domain. In the previous post you linked the SIMROSEWATER.MATERIAL table with the Topobase material domain (ATORAMIG.WA_MATERIAL_TBD).
So you need to link the column MAT_CODE with ID_MATERIAL. Select both columns and click Link attributes. The attributes are linked; the application creates a function converting MAT_CODE to a numeric value because the target column (ID_MATERIAL) is numeric. Select the linked entry and click Edit properties on the right side
The Edit Properties window is displayed. Under Source Attribute or SQL Statement for SIMROSEWATER, replace the function with MAT_CODE. From the Select a linked Domain combo box, select the reference to the domain i.e. 2:MATERIAL.MAT_CODE -> WA_MATERIAL_TBD.ID.
Click Save. The Properties of the link are updated, showing the relation to the domain.
Once all the feature classes and attributes are linked, you can execute the import. In the next post you will see how to test and execute the Oracle Data Import tool.