CSV File Formats

This topic contains details of the format for comma separated variable (CSV) files used in importing and exporting Network data.

The following sections are included:

General file formatting

Formatting details for specific field types

Text fields

Text fields must be contained in double quotation marks if they contain commas or other double quotation marks. Otherwise quotation marks are optional.

Arrays of values of a single type

Arrays of values of a single type, such as coordinates, can be defined as packed (as a single field) or as unpacked (each value is defined in a separate field).

Arrays of values containing more than one field

These arrays contain lists of values that describe more complex parts of particular objects, for example:

The arrays can be defined as packed (as a single field) or separately (in a separate block or separate file).

Using data exported from InfoWorks ICM

When CSV files are exported from InfoWorks ICM, you have the option to export descriptive field names and units information. These are exported as additional records placed before the data records. If you export files including these additional records, and then try to import them, InfoWorks ICM will try to interpret the additional data as normal data records. You will almost certainly get error messages telling you that values in the file have the wrong size or type.

The additional export options are there for your convenience when viewing InfoWorks ICM data in other packages. You should make sure that data you intend to import back into InfoWorks ICM is exported without these additional records. The Select CSV Export Options Dialog divides the options needed for re-import from the additional options and you should have no trouble exporting in the correct format. The additional records could also be removed by editing the file in another package prior to re-import.

2D mesh triangle coordinate data can be exported to CSV format, however subsequent import into InfoWorks ICM is not supported.

Pruned sections of the network are not exported to CSV files. A Prune object is very complex, containing details of all the pruned links and nodes, as well as connectivity information.

Tables with an Object Type of Single contain just one record and so do not need a primary key. These tables usually contain default information.

A full list of the fields which will be exported by InfoWorks ICM can be found in the Network Data Fields topic for each object.

Importing from CSV Files