Create a list of rectangles from a flat list of coordinates in Shapely
This doesn’t answer my question. I have a list of coordinates where every 5 consecutive coordinates define the coordinates of a rectangle, e.g., mylist=[(0, 7),(4, 7),(4, 12),(0, 12),(0, 7),(7, 1),(10,…