>>> from shapely.geometry import Polygon >>> poly2 = Polygon([(1, 2), (2, 5), (6, 5),(7,2),(5 1),(1 2)]) >>> poly2.wkt 'POLYGON ((1 2, 2 5, 6 5, 7 2, 5 1, 1 2))'
from shapely.geometry import ...
- 1316 lectures
>>> from shapely.geometry import Polygon >>> poly2 = Polygon([(1, 2), (2, 5), (6, 5),(7,2),(5 1),(1 2)]) >>> poly2.wkt 'POLYGON ((1 2, 2 5, 6 5, 7 2, 5 1, 1 2))'