[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Smooth Curves - and bi-directional track
|
Hi Joshua,
I think it's possible. You should use the PlainXML format of SUMO
(https://sumo.dlr.de/docs/Networks/PlainXML.html).
Afterwards you build the net.xml with netconvert.
This is an example from my projects. The connection between the
nodes e1 and B is bi-directional.
The type file
<?xml version="1.0" encoding="UTF-8" ?>
<types>
<type id="railway.rail" priority="15" numLanes="1"
speed="77.7778" allow="rail rail_electric" _oneway_="1"/>
</types>
and an excerpt from the edge-file
<?xml version="1.0" encoding="UTF-8" ?>
<edges>
<edge id="T1_0" type="railway.rail" length="900"
speed="38.8889" spreadType="center" from="e1" to="B"/>
<edge id="T1_1" type="railway.rail" length="900"
speed="38.8889" spreadType="center" from="B" to="e1"/>
...
</edges>
For smooth curves you have to compute the coordinates and put
them in the shape attribute (as pointed out by Jakob Erdmann)
For switches, double slip switches, crossings between rail and
rail (diamonds) , directional rail signals you need also the
con.xml file.
Regards, Harald
Am 23.01.20 um 18:59 schrieb Issa,
Joshua:
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user