Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Importing Elevation Data from OSM Data

OSM data does not support attribute 'ele' in nodes. It must instead by provided as a tag:

<node id="27541977" lat="52.4494327" lon="13.4648723">
    <tag k="ele" v="32.89568033760027"/>
  </node>

see wiki.openstreetmap.org/wiki/Node

Am Di., 6. Juni 2023 um 21:34 Uhr schrieb ryota ishida <ishirae17@xxxxxxxxx>:
Dear Jakob

Thanks for the reply.
I will send you the OSM data and the data converted using netconvert.
When using netconvert, I have given the following options.

>>netconvert --osm-files OSMdata.osm -o output.net.xml --speed-in-kmh --osm.elevation --junctions.join --tls.guess --tls.guess.threshold 39.0 --tls.guess-signals --lefthand --sidewalks.guess.from-permissions --crossings.guess

Best regards

2023年6月7日(水) 3:39 Jakob Erdmann <namdre.sumo@xxxxxxxxx>:
This is supposed to be working (and in fact does work in our test). Can you provide a minimal osm sample file to replicate your problem?

Am Di., 6. Juni 2023 um 20:34 Uhr schrieb ryota ishida <ishirae17@xxxxxxxxx>:
Dear all

I want to import elevation data from the following OSM node data.

>><node id="1" lat="<latitude>" lon="<longitude>" ele="<elevation>" visible="true" timestamp="<time>"/>  ...

However, even if I use "--osm.elevation" in netconvert, z-coordinates are not output as shown below.

>><junction id="1222" type="traffic_light" x="4338.51" y="1196.51" incLanes="103459_0 ...

Is there a correct way to import z-coordinates from OSM data to SUMO nodes?

Best regards
_______________________________________________
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