sumo icon indicating copy to clipboard operation
sumo copied to clipboard

A error about lane position and shape from edge.xml file

Open pjj-OSM opened this issue 1 year ago • 7 comments

In my question, i get the network file from node.xml file and edge.xml file by netconvert tool, but i found position and shape of the lane0 in network file is incorrect ,just like fig1, and shape of lane1 and lane2 is correct. The lane0 i input in my file is like fig2 and fig3, i have define the shape of lane0,lane1,lane2 in my dege.xml file. I need some guidance why this question occur and how to solve the problem? fig.1: the network in netedit that connvert by netconvert tool. fig1

fig.2: the network input fig2

fig.3: define of lane fig3

pjj-OSM avatar Jul 15 '24 14:07 pjj-OSM

Can you please provide the PlainXML input files node.xml and edge.xml?

m-kro avatar Jul 15 '24 15:07 m-kro

Can you please provide the PlainXML input files node.xml and edge.xml?

this is my file, and the proj i use is "+proj="utm +zone=51 +ellps=WGS84 +datum=WGS84 +units=m +no_def" in netconvert tool, thank you file.zip

pjj-OSM avatar Jul 16 '24 01:07 pjj-OSM

Can you please provide the PlainXML input files node.xml and edge.xml?

I'm sorry to trouble you, do you have any suggestions?

pjj-OSM avatar Jul 17 '24 08:07 pjj-OSM

I just was able to reproduce it but didn't find the time to look closer at it. Looks strange indeed because the junction shape goes around the area where the lane should actually sit.

m-kro avatar Jul 17 '24 08:07 m-kro

I'm sorry to trouble you, do you have any suggestions?

The junction won't work very well if you define the "insides" as distinct edges. Instead, define a big junction and (if needed) customize the connections shapes and the internal waiting positions (connection attribute contPos). See https://sumo.dlr.de/docs/Networks/PlainXML.html#joining_nodes

namdre avatar Jul 17 '24 08:07 namdre

I'm sorry to trouble you, do you have any suggestions?

The junction won't work very well if you define the "insides" as distinct edges. Instead, define a big junction and (if needed) customize the connections shapes and the internal waiting positions (connection attribute contPos). See https://sumo.dlr.de/docs/Networks/PlainXML.html#joining_nodes

Thank you for you suggestions.In fact, this junction in this case including four left-turn waiting zones in every direction(see figure 2). But the question is, for example, the lane number for left-turn waiting zone in north direction is three(figure 2 red circle) the target lane number is two, so if i use contPos, it maybe doesn't work(i think only two connection will retain?)

pjj-OSM avatar Jul 17 '24 08:07 pjj-OSM

The number of turning connections can be defined by the input as well. The connections are only guessed, if you don't pass a .con.xml file. See https://sumo.dlr.de/docs/Networks/PlainXML.html#connection_descriptions

namdre avatar Jul 17 '24 10:07 namdre