Extract points/coordinates from a polygon in Shapely
The trick is to use a combination of the Polygon class methods: from shapely.geometry import Polygon # Create polygon from lists of points x = [0.0, 0.0, 1.0, 1.0, 0.0] y = [0.0, 1.0, 1.0, 0.0, 0.0] poly = Polygon(zip(x,y)) # Extract the point values that define the perimeter of the polygon xx, yy = … Read more