Hello, as you already noticed netconvert ignores the height data from OSM input. We even have a ticket for that (http://sumo-sim.org/trac.wsgi/ticket/998) but I cannot tell you when we will work on this. If you need elevation data in your .net.xml you can either import it from suitably prepared nod.xml and .edg.xml or you can patch netimport/NIImporter_OpenStreetMap.cpp which should not be too hard. regards, Jakob
2013/12/19 Simone Rondelli <[email protected]> > Hi, > > How can i import Elevation data from OSM files? I have imported elevation > data from SRTM file with Osmosis plugin and the result osm file is > something like this: > > <node id="1355287092" version="2" timestamp="2012-03-27T19:17:27Z" > uid="91650" user="Alberto58" changeset="11119304" lat="44.3644152" > lon="11.2158405"> > <tag k="ele" v="112.73103027199821"/> > </node> > > As you can see there are also elevation data, but netconvert totally ignore > this information! > > This is the .net.xml file generated with netconvert > > <edge id=":1355287092_0" function="internal"> > <lane id=":1355287092_0_0" index="0" speed="22.22" length="6.07" > shape="4784.27,5059.86 4782.43,5065.65"/> > </edge> > <edge id=":1355287092_1" function="internal"> > <lane id=":1355287092_1_0" index="0" speed="22.22" length="2.41" > shape="4784.27,5059.86 4783.09,5060.77 4782.18,5060.90"/> > </edge> > <edge id=":1355287092_6" function="internal"> > <lane id=":1355287092_6_0" index="0" speed="22.22" length="2.41" > shape="4782.18,5060.90 4781.53,5060.25 4781.14,5058.82"/> > </edge> > <edge id=":1355287092_2" function="internal"> > <lane id=":1355287092_2_0" index="0" speed="18.06" length="5.04" > shape="4777.15,5060.85 4778.54,5061.03 4779.66,5060.75 4780.53,5060.01 > 4781.14,5058.82"/> > </edge> > <edge id=":1355287092_3" function="internal"> > <lane id=":1355287092_3_0" index="0" speed="18.06" length="7.93" > shape="4777.15,5060.85 4779.81,5061.78 4781.58,5062.90 4782.45,5064.18 > 4782.43,5065.65"/> > </edge> > <edge id=":1355287092_4" function="internal"> > <lane id=":1355287092_4_0" index="0" speed="22.22" length="6.16" > shape="4779.27,5064.69 4781.14,5058.82"/> > </edge> > <edge id=":1355287092_5" function="internal"> > <lane id=":1355287092_5_0" index="0" speed="22.22" length="2.41" > shape="4779.27,5064.69 4780.42,5063.74 4781.33,5063.59"/> > </edge> > <edge id=":1355287092_7" function="internal"> > <lane id=":1355287092_7_0" index="0" speed="22.22" length="2.41" > shape="4781.33,5063.59 4782.00,5064.22 4782.43,5065.65"/> > </edge> > > > the command that i used are: > > osmosis -plugin org.srtmplugin.osm.osmosis.SrtmPlugin_loader --read-xml > map.osm --write-srtm > locDir=/home/mone/Documenti/Università/Elevation/paparazzi/srtm/ > locOnly=true repExisting=false --write-xml map_with_srtm.osm > netconvert --remove-edges.by-vclass rail_slow,rail_fast,bicycle,pedestrian > --osm-files map_with_srtm.osm -o lama-di-reno.net.xml > polyconvert --net-file lama-di-reno.net.xml --osm-files map.osm --type-file > typemap.xml -o lama-di-reno.poly.xml > > Thank you at all! > > > > -- > Simone Rondelli > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
