Skip to content

Commit

Permalink
added test refs #14422, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 27, 2024
1 parent 19ddddf commit 4372057
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 0 deletions.
Empty file.
38 changes: 38 additions & 0 deletions tests/tools/import/MATSim/coordinates/matsim_plans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE population SYSTEM "http://www.matsim.org/files/dtd/population_v6.dtd">

<population desc="population written from streaming">

<attributes>
<attribute name="coordinateReferenceSystem" class="java.lang.String">
EPSG:25832
</attribute>
</attributes>


<!-- ====================================================================== -->

<person id="0">
<plan selected="yes">
<activity type="home" x="739896.49" y="5689000.22" end_time="07:33:00"/>
<leg mode="ride" />
<activity type="work" x="731549.1" y="5689956.9" start_time="08:05:00" end_time="13:27:00" />
<leg mode="car" />
<activity type="home" x="739896.49" y="5689000.22" start_time="14:05:00" />
</plan>
</person>

<!-- ====================================================================== -->

<person id="freight_0">
<plan selected="yes">
<activity type="freight_start" x="760794.59" y="5697135.14" end_time="05:00:00" />
<leg mode="freight" />
<activity type="freight_end" x="755362.54" y="5671822.01" />
</plan>
</person>


<!-- ====================================================================== -->

</population>
1 change: 1 addition & 0 deletions tests/tools/import/MATSim/coordinates/options.tools
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--plan-file matsim_plans.xml -o out.rou.xml tools/import/matsim/matsim_importPlans.py
Empty file.
26 changes: 26 additions & 0 deletions tests/tools/import/MATSim/coordinates/routes.tools
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-27 15:43:10.693958 by matsim_importPlans.py v1_19_0+1044-19ddddf
options: <doubleminus>plan-file matsim_plans.xml -o out.rou.xml
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="car" vClass="passenger"/>
<vType id="bicycle" vClass="bicycle"/>

<trip id="0_0" depart="triggered" from="None" to="None"/>
<trip id="0_1" depart="triggered" from="None" to="None" type="car"/>
<person id="0" depart="0:0:0">
<stop lane="None_0" until="07:33:00" actType="home"/>
<ride lines="0_0" to="None"/>
<stop lane="None_0" until="13:27:00" actType="work"/>
<ride lines="0_1" to="None"/>
<stop lane="None_0" until="24:0:0" actType="home"/>
</person>
<trip id="freight_0_0" depart="triggered" from="None" to="None"/>
<person id="freight_0" depart="0:0:0">
<stop lane="None_0" until="05:00:00" actType="freight_start"/>
<ride lines="freight_0_0" to="None"/>
<stop lane="None_0" until="24:0:0" actType="freight_end"/>
</person>
</routes>
3 changes: 3 additions & 0 deletions tests/tools/import/MATSim/testsuite.tools
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ alternative_format_vehicles_only

# Importing bikes and walks
bikes_walks

# import coordinates instead of edge ids
coordinates

0 comments on commit 4372057

Please sign in to comment.