Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] OSM Node ID and SUMO IDs Confusion

Thanks a lot. 

On Thu, 5 Nov 2020, 13:42 Lara Codeca, <lara.codeca@xxxxxxxxx> wrote:
Hello,

I extensively hand-fixed the OSM file in JOSM to achieve a working network, and at the time (2014ish), each save was still changing the internal IDs.

Regards,
Lara

On Thu, Nov 5, 2020 at 7:24 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
1) For a relation between OSM and  SUMO-ids, see https://sumo.dlr.de/docs/Networks/Import/OpenStreetMap.html#dismissing_unwanted_traffic_modes However, I think that LuST is not based on raw xml but rather on pre-processed data that only looks like OSM. For details on geometry you better ask the author of the Scenario directly.

2) There are various ways to add custom colors to a sumo .net.xml.  If you just need two colors, the easiest way is to define a selection of edges and junctions and then use 'color by selection' and set the two colors. For a more general edge coloring, see https://sumo.dlr.de/docs/sumo-gui.html#visualizing_edge-related_data

regards,
Jakob

Am Do., 5. Nov. 2020 um 03:48 Uhr schrieb Moyukh Laha <iammoyukh@xxxxxxxxx>:
Hello everyone,

How the osm node ids and the sumo junction ids are related? I am looking at LuST. The lust.net.xml file has junction ids for the junctions. For example,
<junction id="-26782" type="priority".....>

Same is present at Lust.polygons.osm file as
<node id='-26782' visible='true' lat='49.6285696' lon='6.0618223' />

And in the lust.legacy.scenario.osm file as
<node id='-26782' visible='true' lat='49.5852427' lon='6.0883019' />

In the last two files, the node ids are same but their lat lon are different. Why?
Also when it is made to the lust.net.xml how they are mapped and from which file?

I am trying to plot few junctions and their connecting edges (like a tree) on top of the map file (osm file). Now the processing is done with the sumo ids and when I try the same ids to plot on the osm file some of the nodes are not matching or their connecting paths are not matching (i.e they are distant nodes, not adjacent). I am confused with the ids of the osm files and the sumo files and how they are related?

BDW is there any way so that I can plot few junctions and their connecting edges (like a tree) on the sumo file itself rather than on the osm map file? I know about NetEdit and can manually select the junction and edge ids to plot them. But I have too many nodes to plot manually. How do I solve this issue?

Thanks.
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top