<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>How to export a Public Transport Line File (.lin) into a Shape File and DBF files</title><link>https://communities.bentley.com/products/mobility-simulation/cube/w/wiki/50626/how-to-export-a-public-transport-line-file-lin-into-a-shape-file-and-dbf-files</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>How to export a Public Transport Line File (.lin) into a Shape File and DBF files</title><link>https://communities.bentley.com/products/mobility-simulation/cube/w/wiki/50626/how-to-export-a-public-transport-line-file-lin-into-a-shape-file-and-dbf-files</link><pubDate>Tue, 09 Aug 2022 14:42:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2a42b564-111a-4a1a-871a-9280a5a1276c</guid><dc:creator>Filippo Contiero</dc:creator><comments>https://communities.bentley.com/products/mobility-simulation/cube/w/wiki/50626/how-to-export-a-public-transport-line-file-lin-into-a-shape-file-and-dbf-files#comments</comments><description>Current Revision posted to CUBE Wiki by Filippo Contiero on 8/9/2022 2:42:26 PM&lt;br /&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;stick-links&amp;quot; network instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To undertake this intermediate steps and export your needed files please follow the steps below.&lt;/p&gt;
&lt;p&gt;1. Opening Data Manager&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-46/pastedimage1594136769860v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2. First, you need to create a Cube Geodatabase (GDB or MDB) &amp;ndash; clicking on &amp;ldquo;New Geodatabase&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-46/pastedimage1594136829073v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;3. Once the Geodatabase is created and loaded in Data Manager, click on Import / Export data&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-46/pastedimage1594136988602v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;4. Select as Input your .net file and as Output a HW Network (feature dataset) inside the above created GDB - please select &amp;quot;True Shape&amp;quot; and select the associated shape file, in case you have one available&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-46/pastedimage1594137201156v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Base network&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-46/pastedimage1594137252317v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Output type&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-46/pastedimage1594137887516v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: DBF, shape file, Line File&lt;/div&gt;
</description></item><item><title>How to export a Public Transport Line File (.lin) into a Shape File and DBF files</title><link>https://communities.bentley.com/products/mobility-simulation/cube/w/wiki/50626/how-to-export-a-public-transport-line-file-lin-into-a-shape-file-and-dbf-files/revision/1</link><pubDate>Tue, 09 Aug 2022 14:42:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2a42b564-111a-4a1a-871a-9280a5a1276c</guid><dc:creator>Filippo Contiero</dc:creator><comments>https://communities.bentley.com/products/mobility-simulation/cube/w/wiki/50626/how-to-export-a-public-transport-line-file-lin-into-a-shape-file-and-dbf-files#comments</comments><description>Revision 1 posted to CUBE Wiki by Filippo Contiero on 8/9/2022 2:42:26 PM&lt;br /&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &amp;quot;stick-links&amp;quot; network instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To undertake this intermediate steps and export your needed files please follow the steps below.&lt;/p&gt;
&lt;p&gt;1. Opening Data Manager&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-05-48/pastedimage1594136769860v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2. First, you need to create a Cube Geodatabase (GDB or MDB) &amp;ndash; clicking on &amp;ldquo;New Geodatabase&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-05-48/pastedimage1594136829073v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;3. Once the Geodatabase is created and loaded in Data Manager, click on Import / Export data&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-05-48/pastedimage1594136988602v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;4. Select as Input your .net file and as Output a HW Network (feature dataset) inside the above created GDB - please select &amp;quot;True Shape&amp;quot; and select the associated shape file, in case you have one available&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-05-48/pastedimage1594137201156v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Base network&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-05-48/pastedimage1594137252317v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;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 &amp;quot;Output type&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-05-48/pastedimage1594137887516v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: DBF, shape file, Line File&lt;/div&gt;
</description></item></channel></rss>