Hi Bassma, the easiest way is to parse the network using sumolib: http://sumo.dlr.de/wiki/Tools/Sumolib#import_a_network_and_retrieve_nodes_and_edges For the API of the net, see also http://www.sumo.dlr.de/pydoc/sumolib.net.html
Best regards, Michael Am 01.11.18 um 19:03 schrieb bassma aldahlan: > Thank you for answering Jakob, > > I have another question please. > > After: > > > <configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd"> > > <input> > <osm-files value="osm_bbox.osm.xml"/> > </input> > > <output> > <output-file value="lex.net.xml"/> > </output> > > <projection> > <proj.utm value="true"/> > </projection> > > <tls_building> > <tls.discard-simple value="true"/> > <tls.join value="true"/> > <tls.guess-signals value="true"/> > </tls_building> > > <ramp_guessing> > <ramps.guess value="true"/> > </ramp_guessing> > > <processing> > <geometry.remove value="true"/> > <junctions.join value="true"/> > </processing> > > </configuration> > > I would like to get the id of each intersection(junction) and the > position to check if the position of a node is in an intersection. What > is the command to get the id and the position of an intersection? I mean > I need to get all the area of intersection (a cluster of junction)? > > > Thank you, > > Bassma > > > > > > ------------------------------------------------------------------------ > *From:* [email protected] <[email protected]> on > behalf of Jakob Erdmann <[email protected]> > *Sent:* Wednesday, October 31, 2018 7:47 AM > *To:* Sumo project User discussions > *Subject:* Re: [sumo-user] Junctions > > Hello, > After joining junctions, some in-between edges no longer exists and you > need to re-generated your traffic demand. If you scenario was first > generated with osmWebWizard, you can just execute the script build.bat > > regards, > Jakob > > Am Di., 30. Okt. 2018 um 18:02 Uhr schrieb bassma aldahlan > <[email protected] <mailto:[email protected]>>: > > Hi All! > I used sumo and OSM . I need to join the nodes in the junctions in > sumo, so I used this command: > netconvert --sumo-net-file map.net.xml \ > > --output-file mapJJ22.net.xml \ > > --junctions.join > > but when I use this command sumo-gui mapJ.sumo.cfg, I got an error: > Error:The edge '-417597670#4' within the route for vehicle '0' is > not known. The route can not be build > Quitting (on error ). > > How to cluster the nodes in junctions and get the id of each > junction if I use sumo and OSM? How can I trace the junction after > join in ns3. I know how to trace the position of a node in ns3, but > not the position of junction of clusters? > > > > Thanks, > > _______________________________________________ > sumo-user mailing list > [email protected] <mailto:[email protected]> > To change your delivery options, retrieve your password, or > unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > > > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
