You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I get that a way represents a set of edges between nodes in an OSM graph. I was wondering, is there a method to query all of the points that fall along a way? That is, I would like to identify all of the latitude and longitude points along a way.
I did google this question, and it seems like other people push the OSM graph into a database like PostGIS to do this. I was just wondering if there was a way to do this without pulling down to a database? Thanks.
The reason is that I have a different geospatial layer, and I need to basically match the points on each path to the points on the raster layer. And then I can basically integrate that path, and assign that integral value to the nodes on either side of the path. And then I can hopefully use that information to make routing decisions. That is the intent anyway.
Thanks.
The text was updated successfully, but these errors were encountered:
As OSMX pakage gives the routes in the format of node IDs and as m.nodes[node_id] command returns an ENU coordinates so you can perhaps use the following:
LLA(m.nodes[node_id]) # which gives latitude and longtitude
Basically, the ENU coordinates are ready for plotting.
Having an ENU node you can do getX(::ENU) and getY(::ENU) and use it to plot a map. OpenStreetMapXPlot.jl is actually using this mechanism.
To convert from ENU to LLA you need to provide the reference point where the ENU system is attached.
typically this will be something like:
LLA(enu, some_map_data.bounds)
where enu is an ENU node and some_map_data is a result of loading of an OSM file
So I get that a way represents a set of edges between nodes in an OSM graph. I was wondering, is there a method to query all of the points that fall along a way? That is, I would like to identify all of the latitude and longitude points along a way.
I did google this question, and it seems like other people push the OSM graph into a database like PostGIS to do this. I was just wondering if there was a way to do this without pulling down to a database? Thanks.
The reason is that I have a different geospatial layer, and I need to basically match the points on each path to the points on the raster layer. And then I can basically integrate that path, and assign that integral value to the nodes on either side of the path. And then I can hopefully use that information to make routing decisions. That is the intent anyway.
Thanks.
The text was updated successfully, but these errors were encountered: