Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raycasting GPS coordinates
#10
Have a look at the docs for Shaply
Quote:Points
class Point(coordinates)
The Point constructor takes positional coordinate values or point tuple parameters.

>>> from shapely.geometry import Point
>>> point = Point(0.0, 0.0)
>>> q = Point((0.0, 0.0))
A Point has zero area and zero length.
Your code line 23 is not working as you think. You can create ONE Point with it, not a list of points.

And your new error results from:
Quote:>>> list(point.coords)
[(0.0, 0.0)]
point.coords is a property, a value, not a function you can give parameters.
Reply


Messages In This Thread
Raycasting GPS coordinates - by drybulkfreight - Aug-17-2019, 07:39 AM
RE: Raycasting GPS coordinates - by drybulkfreight - Aug-17-2019, 06:28 PM
RE: Raycasting GPS coordinates - by scidam - Aug-17-2019, 10:04 PM
RE: Raycasting GPS coordinates - by drybulkfreight - Aug-18-2019, 08:12 AM
RE: Raycasting GPS coordinates - by drybulkfreight - Aug-18-2019, 09:33 AM
RE: Raycasting GPS coordinates - by ThomasL - Aug-18-2019, 09:38 AM
RE: Raycasting GPS coordinates - by drybulkfreight - Aug-18-2019, 10:27 AM
RE: Raycasting GPS coordinates - by ThomasL - Aug-18-2019, 11:00 AM
RE: Raycasting GPS coordinates - by drybulkfreight - Aug-18-2019, 11:00 AM
RE: Raycasting GPS coordinates - by ThomasL - Aug-18-2019, 12:16 PM
RE: Raycasting GPS coordinates - by drybulkfreight - Aug-18-2019, 02:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help on making raycasting faster robie972003 2 2,955 Mar-10-2019, 03:36 AM
Last Post: robie972003

Forum Jump:

User Panel Messages

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