Dear Feresteh,
the only case this may happen when looking at the code is related to the type definitions you added. If the type has the attribute _oneway_="true", this overrides the value from the shape file. If this does not explain your problems, please provide a test file.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] incorrect street directions from shp to sumo.net
Datum: 2024-02-28T17:41:24+0100
Von: "fereshte jafari via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
Hello!
I converted my shapefile to a sumo network using the below command
netconvert --shapefile-prefix roads4 --shapefile.use-defaults-on-failure --speed-in-kmh t --type-files osmNetconvert4.typ -v
the generated network does not contain the road directions properly although this attribute already exists in my shapefile with the name DIR_TRAVEL which is given in the table of this documentation (Direction of travel ("B": both, "F": forward, "T": backward)).
https://sumo.dlr.de/docs/Networks/Import/ArcView.html
In most cases, the directions are correct but bidirectional roads only work in one direction!
Your guidance and help would be greatly appreciated.
--
Sincerely,
Fereshteh Jafari Shahdani
PhD candidate, Dep. of Civil Engineering
ISISE - University of Minho
![]()