CARIS BASE Editor : Feature Editing : Commands : Object Import Utility : Create a Script : Step 2: Source File
 
Step 2: Source File

Step 2: Text file

The Create Object Import Script - Step 2 dialog box is displayed

Options

Description

File

The first few rows of the file.

Layout

Comment delimiter: Comment delimiters are placed at the beginning of the first line of text in the source file to indicate that it is the header line. The contents of this line will be used as column headings for the data, identifying the attributes to be mapped during import. The Comment delimiter can be changed by typing one or more characters in the text box or selecting a character from the drop-down list. The default is //.

The application automatically assumes that the first line in the source file is a header and does not include it during import. To ensure that all points are imported, the first line in your text file must be a commented header line, not a line of data.

Field delimiter: Field delimiters separate the data fields in the text file. Common delimiters are commas, tabs, and spaces, but other characters can be used. To change the delimiter, either type one or more characters in the text box, or select a character from the drop-down list. The default is comma.

Contents

Object type: Choose from area, a line, or point.

Spatial type: Define the spatial type of spatial to use for the object. Choose from the list.

Object class: Define the exact type of object to be created. Choose from the list.

Character set

The character encoding set used in the input text file. Different character sets are often used for different regions and languages, for example, the character set for a French file would include special accent characters. This setting allows non-English text files to be imported.

1. Select the relevant character set from the list.

1. Set any necessary options.

2. Click Next.

Step 3 is displayed. See Step 3: Attributes and keywords.

Step 2: Shapefile

The Create Object Import Script - Step 2 dialog box is displayed.

Option

Description

Record filter

Import only data that meets specific criteria.

Field: Select from the list.

Value: Type a value

Leave Field blank to import all data from the Shapefile.

Contents

Map the file contents to a dictionary feature.

Object type: This is determined from the Shapefile and cannot be changed.

Spatial type: Choose from Edge, Geodesic, and Loxodrome.

Object class: This contains a list of appropriate features. Choose from the list.

1. Select an Object class.

2. Select a Spatial type.

3. Set any other necessary options.

4. Click Next.

Step 2: Database

The Create Object Import Script - Step 2 Database dialog box is displayed.

Option

Description

Database features to import

Select the source of the input data.

Table: If a suitable table exists, select it from the list

SQL query: Filter the data to be imported using an SQL query. Type any valid SQL statements in the text box.

Contents

Map the file contents to a dictionary feature.

Object type: Select from the list.

Spatial type: Select from the list. Choose from Edge, Geodesic, and Loxodrome.

Object class: Appropriate features. Choose from the list.

1. Select the data source.

2. Select the Contents options.

3. Click Next.