pyrosm icon indicating copy to clipboard operation
pyrosm copied to clipboard

The custom network filter does not return graph nodes, would there be a way to do that?

Open lenkahas opened this issue 2 years ago • 2 comments

Hi, I was working with the pyrosm for the past week or so and I noticed that when retrieving a network through the custom filter and keeping the nodes, the nodes for the graph are not included and so I can't translate the network to graph. Although the get_network function does retrieve the nodes, I'm not able to use the custom filter in that function. Maybe I'm just missing something, would you advise me on how to get a full graph for custom called network?

lenkahas avatar Apr 27 '22 14:04 lenkahas

Hi @lenkahas, thanks for raising this to my attention! 👍🏻 I will take a look at this next week. What kind of network are you trying to extract? It is possible to customize the criteria that is used for parsing the network with .get_network() but it's easier to point to right direction with a bit more details what you aim to achieve. 🙂

HTenkanen avatar May 04 '22 05:05 HTenkanen

Hi thanks for getting back to me. I was looking to apply fully customised tag selection, for example for mopeds or cyclists. If I'm honest, I was not able to figure out how the custom tag selection works for the get_network(). So I managed to go around the issue by retrieving full network get_network(filter='all'), then subset the edges by the custom tag dictionary, and then subset the nodes by the list of existing nodes in the edge list. I thought there might be more elegant solution I'm not getting 😅

On Wed, 4 May 2022, 06:38 Henrikki Tenkanen, @.***> wrote:

Hi @lenkahas https://github.com/lenkahas, thanks for raising this to my attention! 👍🏻 I will take a look at this next week. What kind of network are you trying to extract? It is possible to customize the criteria that is used for parsing the network with .get_network() but it's easier to point to right direction with a bit more details what you aim to achieve. 🙂

— Reply to this email directly, view it on GitHub https://github.com/HTenkanen/pyrosm/issues/181#issuecomment-1116946250, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKRHHADMLZLCCQ4NSDORH33VIIEMDANCNFSM5UPK67ZQ . You are receiving this because you were mentioned.Message ID: @.***>

lenkahas avatar Oct 11 '22 09:10 lenkahas