Python Forum
Finding nearest point of a Multidigraph in Python 3.7
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding nearest point of a Multidigraph in Python 3.7
#4
I can´t tell you, i don´t know.
You are calling ox.get_nearest_node(H, orig_xy, method='euclidean') and then you get the error.

So either parameter H, which comes from H = read_multi_shp(path)
or orig_xy which comes from orig_xy = (df.loc[i, "PTV_N"], "-" + df.loc[i, "PTV_E"]) is faulty.
I would guess it´s the building of orig_xy, are you sure about the part above marked red?
Reply


Messages In This Thread
RE: Finding nearest point of a Multidigraph in Python 3.7 - by ThomasL - Aug-16-2019, 01:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Writing a cycle to find the nearest point from the array Tysrusko 0 240 May-10-2024, 11:49 AM
Last Post: Tysrusko
  Get numpy ceil and floor value for nearest two decimals klllmmm 4 1,458 Jun-07-2023, 07:35 AM
Last Post: paul18fr
  compare and find the nearest element ? mr_gentle_sausage 4 1,170 Jan-15-2023, 07:11 AM
Last Post: DPaul
  finding point in m grid jenya56 0 881 Feb-06-2022, 09:00 PM
Last Post: jenya56
  Python Matplotlib: How do I plot lines with different end point in the same graph? JaneTan 0 1,641 Feb-28-2021, 11:56 AM
Last Post: JaneTan
  Rounding to the nearest eight wallgraffiti 2 2,176 Jul-15-2020, 06:05 PM
Last Post: wallgraffiti
  Finding Max and Min Values Associated with Unique Identifiers in Python ubk046 1 2,169 May-08-2020, 12:04 PM
Last Post: anbu23
  connecting the first point to the last point Matplotlib omar_mohsen 0 4,740 Jan-15-2020, 01:23 PM
Last Post: omar_mohsen
  finding the closest floating point number in a list Skaperen 17 8,681 Sep-19-2019, 10:39 PM
Last Post: Skaperen
  finding the next higher representable floating point value Skaperen 0 2,014 Sep-13-2019, 11:16 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020