[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] incorrect street directions from shp to sumo.net
|
Dear Mirko,
Please see attached my typefile which does not include the oneway option. Also, I attached three pictures of a specific link in my network in 1-shp, 2-sumo, 3-netedit. As you can see in the pictures in shp the DIR_TRAVEL=B while in sumo and netedit it shows just one direction on the link.
Besides that, I have one more question. My links in netedit are not connected completely as you can see in the attached screenshot while in the sumo they are well connected and there is no warning. I am wondering if this situation would be ok or problematic in next steps of simulation runnings? Because my network is very large and fixing these issues one by one is really timetaking. I prefer to skip it 😬
Thanks in advance for your help.
![]()
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
![]()
-- Sincerely,
Fereshteh Jafari Shahdani
PhD candidate, Dep. of Civil Engineering
ISISE - University of Minho
Attachment:
osmNetconvert4.typ
Description: Binary data
Attachment:
netedit.png
Description: PNG image
Attachment:
sumo.png
Description: PNG image
Attachment:
shp.png
Description: PNG image