Skip to Content

from shapely.geometry import ...

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