Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Adapps lango switcher macro
Table of Contents

Description

Import allows to save a data set in database, within chosen format, to avoid the manual input of all the data. The validation tests are applied before the import to the database (more details in case of Neptune ).

Consult the Imports

You can see the imports done by your organization in “Workbench” - “Imports”.

...

For each import, Status, Beginning, Name, Creator, are displayed.

...

  • import name

  • the list of referenced lines from file

  • the period covering from the first to the last day of calendars present in file

Start an import

To import the data into Chouette, you need to click on “New import”, fill in the template and choose a file to import.

...

Info

You can ask

...

the import to merge its data sets automatically in case of success. This automatic launch is not performed if the import fails (due to problems in reading data or errors in automatic validation).

You can ask the import to archive the created dataset if the import ends in failure. Thus the dataset will not block a new import of a corrected file that covers the same periods and lines.

You can also allow the import to make changes to Workbenches resources.

The import type is automatic by default to manage files in GTFS or Neptune formats.

...

When you launch an import or export operation, a progress bar allows you to follow the progress of the operation. This bar is persistent. You can click on the bar to return to the information of the current operation. You can also close the bar (without disturbing the operation).

...

You can see the informations of the import on its page.

...

  • successful

  • warning

  • failed

  • pending

...

To be successful, import must contain the data able to pass through the validation.

...

If the import is failed, on the import page you can see the files containing the errors that produced the failure.Attention

...

In case of import failure caused by errors in the file, the Dataset created will contain only the correct data.

Note

The data set wont be created if the import data has a conflict with the existing data set “In edition”.

GTFS

“GTFS file” is a ZIP file containing the CSV files (a file by data type: stop areas, calendars, passing times etc).

...

Each CSV file must contain a certain number of attributes, that have to be completed according to the official format.

AttentionHere is an example of a typical GTFS file:

...

Info

If one of CSV files of GTFS is absent or doesn’t answer the official formats, the import will fail.

NEPTUNE

Each NEPTUNE file answers to description of a line of transport network.

Generally a transport network, characterised by several transport lines, represents a collection of files .xml grouped in .ZIP.

Chouette treats the set of xml files located in the root of ZIP file chosen by the user, and validates them one by one.

Delete un import

.

Shapes

To import a .ZIP file that groups the geometries of the shapes, you must define the import type as “Shape file”.

...

Info

If any geometry of the shape file is missing or does not match official formats, the import will fail.

NeTEx Generic

To import an .xml file in generic NeTEx format with stops, lines, carriers, networks, etc., the type of import must be defined as “generic Netex”.

...

Info

If a xml file of NeTEx file does not match the official formats, the import will fail.

Automatic purge of old imports

Chouette conserves the file of each import.

This conservation is limited in time . After (after a definable period the imports stay accessible in interface but their file is not available.This cleaning is made after each import on the imports of the same workbenchof 90 days the imports are automatically deleted).