Aug-18-2019, 12:16 PM
Have a look at the docs for Shaply
And your new error results from:
Quote:PointsYour code line 23 is not working as you think. You can create ONE Point with it, not a list of 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.
And your new error results from:
Quote:>>> list(point.coords)point.coords is a property, a value, not a function you can give parameters.
[(0.0, 0.0)]