CARIS BASE Editor : BASE Manager : Commands : Import Selected Objects to Database
 

Import Selected Objects to Database

 

Menu

File > Import > Import Selected Objects > To Database

The Import Selected Objects to Database command imports feature objects into a database from either a feature layer or an existing database filter layer. Any feature object can be imported, as long as the feature acronym is present in both the catalogue of the feature layer and the catalogue of the database. For example, if the selected objects are of type Coverage, the Coverage acronym must be present in the catalogue of the feature layer and the catalogue of the database.

No mapping can be specified during the import of objects; only attributes whose definitions match exactly will be copied to the new database objects. If the selected objects contain attributes that are not present in the catalogue being used by the database, those attributes will be skipped. When this happens, messages will be displayed in the Ouptut window identifying any skipped attributes.

If attribute mapping is required, this can be accomplished using the Feature Plugin option in Tools > Options. This option points to a Python script containing attribute mapping definitions. To use this option, Python must be installed and the appropriate Python module must be enabled. Sample python scripts are provided with the installation and can be found in the following location by default:

C:\Program Files\CARIS\BASE Editor\<version>\modules\BASE Manager\support\Catalogues

Once imported, each new object is accessible from a database filter layer whose filter expression includes the object types imported. If no such layer exists in the current layer list, a new filter layer must be added or an existing filter layer must be altered to include the newly imported object(s).

Coverages can be associated to the imported database objects through the Set Coverage command, if desired. See Set Coverage for more information on this process.

Related commands:

Set Coverage

Add Coverage to Database

Interface

The Import Selected Objects to Database command uses the following dialog box.

Option

Description

Import to

The database containing the database filter layer to use for the import. The list is populated with all open database connections.

Procedure

1. Create and/or select one or more area features on a feature layer. See Digitize for information on creating feature objects.

2. Select the Import Selected Objects to Database command.

The Import Selected Objects dialog box is displayed.

3. From the list, select the database to which you want to add the object(s).

4. Click OK.

A database object is added to the database for each selected feature object.

5. Save the database layer.