Hello, in SUMO, some of the OSM nodes are interpreted as intersections and given a 2d shape. The sumo edges are shortened to account for this shape. The actual distance traveled by a vehicle remains the same since there are so-called internal edges within the intersection. If you run netconvert with the option --no-internal-links, edge lengths should match the google earth-lenghts but vehicles will 'jump' across the intersection. See http://sumo.dlr.de/wiki/Simulation/Intersections
regards, Jakob 2015-07-24 15:40 GMT+02:00 <[email protected]>: > Hello sumo users and developers, > > I have a question / problem concerning the netconvert. > (sumo-winbin-x64-0.21.0) > In my project, we are using sumo with OpenStreetMap (osm) files. Sumo > uses the netconvert tool to convert the OpenStreetMap files into its > own system. > Netconvert reads the osm file and writes a ?net file?. (For Example: > netconvert transform an osm way into a net edge with lane(s). ) > But sometimes the length of an edge (lane) in the netconvert output > file is incorrect. > > Here is a small example of this problem / bug: > OpenStreetMap: > https://www.openstreetmap.org/export#map=19/51.14115/6.79752 > Download osm file: > > http://api.openstreetmap.org/api/0.6/map?bbox=6.79726,51.1407,6.79809,51.1416 > > This osm file has a way with the id 146928817. This way has three > nodes (60628123, 1601433003 & 410817483) and, hence, two parts (from > 60628123 to 1601433003 and from 1601433003 to 410817483). > I checked the length of this two parts in google earth: > from 60628123 to 1601433003 = 15.47 meter > from 1601433003 to 410817483 = 39.83 meter > > I used netconvert with the aforementioned osm file. Now, the output > file shows that the edges have different lengths: > edge id="146928817#0" from="60628123" to="1601433003" ? > lane id="146928817#0_0" index="0" speed="19.44" length="7.60" > > edge id="146928817#1" from="1601433003" to="410817483" > lane id="146928817#1_0" index="0" speed="19.44" length="24.98" > > > Next, I tried to narrow down the problem by creating a new osm file. > The file had only one osm way (146928817) and the three needed osm > nodes. I then used the netconvert to create a netfile from the new osm > file. Now, the edge/lanes has the same length as the one in google > earth. > But(!): the gps data of the nodes are the same as the one in the > ?original? osm file. > > The problem is not only, that the output (length) of netconvert > differs from google earth, but that, in google earth, the second part > of the way is 2.57 times longer than the first part. > And using netconvert the second part gets 3.28 times longer than the > first part. > > Why are the lengths of the edges/lanes in the netconvert not the same > like the ones from google earth? > > > Thanks > :-) > > Adrian > > > p.s. When I use netconvert 0.23 (sumo-msvc10x64-0.23.0), the deviation > in length gets even worse: Part two = 8.48 meters. > p.s.2: I used netconvert with the following parameters: > netconvert64.exe --osm-files map.osm.xml -o map.net.xml > --roundabouts.guess --tls.guess-signals --tls.discard-simple --tls.join > > > Minimum osm file: > <?xml version="1.0" encoding="UTF-8"?> > <osm version="0.6" generator="CGImap 0.4.0 (15021 > thorn-03.openstreetmap.org)" copyright="OpenStreetMap and > contributors" attribution="http://www.openstreetmap.org/copyright" > license="http://opendatacommons.org/licenses/odbl/1-0/"> > <bounds minlat="51.1407000" minlon="6.7972600" maxlat="51.1416000" > maxlon="6.7980900"/> > <node id="1601433003" visible="true" version="2" > changeset="14311662" timestamp="2012-12-17T21:04:03Z" > user="rurseekatze" uid="81244" lat="51.1409034" lon="6.7978844"> > <tag k="highway" v="traffic_signals"/> > </node> > <node id="60628123" visible="true" version="42" changeset="14311662" > timestamp="2012-12-17T21:04:05Z" user="rurseekatze" uid="81244" > lat="51.1407818" lon="6.7979915"/> > <node id="410817483" visible="true" version="4" changeset="10467332" > timestamp="2012-01-22T17:36:55Z" user="Sharlin" uid="141931" > lat="51.1412198" lon="6.7976182"/> > <way id="146928817" visible="true" version="3" changeset="27056207" > timestamp="2014-11-26T21:50:54Z" user="innuendo" uid="8587"> > <nd ref="60628123"/> > <nd ref="1601433003"/> > <nd ref="410817483"/> > <tag k="highway" v="primary"/> > <tag k="lanes" v="3"/> > <tag k="lanes:backward" v="2"/> > <tag k="lanes:forward" v="1"/> > <tag k="lit" v="no"/> > <tag k="maxspeed" v="70"/> > <tag k="ref" v="B 9"/> > <tag k="turn:lanes:backward" v="left|through;right"/> > </way> > </osm> > > > Kml file for google earth: > <?xml version="1.0" encoding="UTF-8"?> > <kml xmlns="http://earth.google.com/kml/2.0"> > <Document> > <name>osm way id 146928817</name> > > <Placemark> > <name>60628123 to 1601433003</name> > <LineString> > <coordinates> > 6.7979915,51.1407818 > 6.7978844,51.1409034 > </coordinates> > </LineString> > <Style> > <LineStyle> > <color>#ff000000</color> > <width>5</width> > </LineStyle> > </Style> > </Placemark> > > <Placemark> > <name>1601433003 to 410817483</name> > <LineString> > <coordinates> > 6.7978844,51.1409034 > 6.7976182,51.1412198 > </coordinates> > </LineString> > <Style> > <LineStyle> > <color>#ffffffff</color> > <width>5</width> > </LineStyle> > </Style> > </Placemark> > > </Document> > </kml> > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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
