Hello, With Best Regards, asked 12 Jul '19, 21:58 Mohsen Rahmati |
Does it matter that your new nodes are "between other nodes" (i.e. along a long straight way already in OSM) or can they just fill in the areas where there are no nodes to allow you to add elevations to them to process later? If it's the latter, I'd just programmatically create a regular grid of nodes in an external .osm file a certain difference apart and merge that with the existing .osm data that you have. I'd then combine the resulting files with osmosis or similar. answered 13 Jul '19, 11:52 SomeoneElse ♦ Thanks for your participation @someoneelse.
(13 Jul '19, 14:46)
Mohsen Rahmati
|
If you have a chance to put your data in Postgis, then this function may help: answered 14 Jul '19, 15:27 yvecai Thanks for your participation @yvecai.
(20 Jul '19, 12:53)
Mohsen Rahmati
|
As I mentioned above, I was looking for a tool that could add some artificial nodes into the ways of the OSM map file. my goal was to increase the resolution of the elevation data that was later added with the "Osmosis-SRTM-Plugin". Required Packages: Python Script Repository (OSMEditor): answered 20 Jul '19, 13:04 Mohsen Rahmati |
by the way, I want to use this updated OSM map file offline, in a traffic simulation software.
It would help if you could explain what you're actually doing in a bit more detail, and also describe what you've tried already.
Thanks for your participation @someoneelse.
There are many ways to create a network in traffic simulation software, but importing the OSM map file of the interested area is more convenient. Also, I want to see the effect of elevation in my simulation model. so, now I'm looking for the fastest way that I could add some artificial nodes into edges or links (i.e. those links that are related to roads or highways), in order to increase the resolution of the elevation data that produced by "osmosis-srtm-plugin".
So you're actually looking to add extra nodes to existing ways in your download (and presumably only some existing ways, perhaps corresponding with certain highway types)?
I'm not aware of anything that already does that, but that doesn't mean that it doesn't exist. On the other hand of course it doesn't sound that hard to write some code yourself to do that.