How to export a Public Transport Line File (.lin) into a Shape File and DBF files


To export a .lin file into a Shape File or DBF files you can use some voyager scripting to produce these files, or you can do this by going through some intermediate steps of creating a Cube PT network associated to your HW network in a CUBE Geodatabase file.

If you are working with our Cube binary Highway Network (.net) and you have a Shape File (.shp) associated to it, you can import the .net file into a CUBE Geodatabase, to store your GIS CUBE network (keeping associated geometry and projections).

If the Public Transport line file (.lin) is associated to this network, then you can import this layer as a CUBE Public Transport dataset, inside the same CUBE Geodabase, so that your PT layer will be synced to the associated HW network.

In case you do not have a Shape File with the geometry, you can still import your network inside a CUBE Geodatbase and the associated PT line file, but you will obvoiusly do not have the geometry for each link but a "stick-links" network instead. 

To undertake this intermediate steps and export your needed files please follow the steps below.

1. Opening Data Manager

2. First, you need to create a Cube Geodatabase (GDB or MDB) – clicking on “New Geodatabase”

3. Once the Geodatabase is created and loaded in Data Manager, click on Import / Export data

4. Select as Input your .net file and as Output a HW Network (feature dataset) inside the above created GDB - please select "True Shape" and select the associated shape file, in case you have one available

5. Repeat step 3 and select as Input your .lin file and as Output a Transit Network (feature dataset) associated (sync) to the HW network that you created in step 4 selecting it as "Base network"

6. Then you can Export the line feature dataset that you created as shape file (select the PTLine feature class as below), or the other layers as well (links and nodes sequences), in different format, like DBF tables (example in the screenshot below, where the dbf format has been selected as "Output type")