Hello, some of the osm-nodes are thrown away because they only define road geometry (a bend in the road). Others are discared because they are not part of a road at all (this will often be the case for bus-stop nodes). I recommend that you put the coordinates of the nodes you are interested in, into some data structure and then map them to the closest edge in a post-processing step. (If you are doing this with a python script, see the 'nearby edge' example at http://sumo.dlr.de/wiki/Tools/Sumolib)
regards, Jakob 2015-10-20 17:52 GMT+02:00 Łukasz Jabłoński <[email protected]>: > Ok, so I wrote some basic script that will parse the bus stops from osm > file. I can recognize interesting nodes, and save the information. But I > found another problem that I'm actually working with. In .osm file all > stops are just nodes. These nodes have id. I need that id to connect node > with lane(edge). The problem is that the output file from netconvert does > not have all the nodes present in .osm file. Many nodes are dropped in the > process, both tram-stop nodes, and regular ones. I've been trying diffrent > options with netconvert, to parse all nodes into .net.xml file, but without > a success. Could you give me a tip how to parse all nodes from osm into > .net.xml, so I can connect my stop-nodes with lanes? > > > > RegardsŁ. Jabłoński > > > 16:33 czwartek, 2015-10-1, Jakob Erdmann <[email protected]> > napisał(a): > > > Hi, > there is currently no support for parsing bus stops or tram stops from OSM > (although we intended to add it eventually). > Right now, bus stops must be defined in xml files and loaded with option > -a. There is no functional difference between bus stops and tram stops from > sumo's point of view. (see > http://sumo.dlr.de/wiki/Simulation/Public_Transport). > I suggest you look at netimport/NIImporter_OpenStreetMap.cpp and write > some code to parse busStops/tramStops from OSM yourself and share it with > us (-: > > If you merge your networks by pasting, you will lose accuracy for streets > where trams and cars share a lane. It's better to import all edges in one > go and do the filtering with netconvert options (i.e. > --keep-edges.by-vclass passenger,tram) > > regards, > Jakob > > 2015-10-01 15:46 GMT+02:00 Łukasz Jabłoński <[email protected]>: > > Hi everyone, > I have a simulation of particular streets, with traffic lights, used to > calibrate Krauss model. It works fine. My next task is to add tram lanes to > my simulation. I obtained .osm map, trimmed it with osmconvert, kept only > tram edges with osmfilter. Map is fine, I checked it with JOSM, there are > only tram rails and tram stops left(stops are nodes, with tags such as > railway=tram_stop and public_transport=stop_position). > Next step is to convert it into .net.xml file, using NETCONVERT. I did it > using '--xml-type-files' command, and without defining types. I get > .net.xml file, paste contain into my source .net.xml file. It works, I got > the tram-edges into simulation, but there are no tramstops. And I got > jammed at this point, as there are no tutorials covering this subject. > There are some about busStops, but as far as I'm concerned it is something > different. Can anyone help me with getting tram rails and tram stops from > osm file, into .net.xml file? > > Thanks in advance. > Regards,Luke > > ------------------------------------------------------------------------------ > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > > > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
