Skip to Content

coord. points

  1. >>> list(poly1.exterior.coords)
  2. [(1.0, 2.0), (2.0, 5.0), (6.0, 5.0), (7.0, 2.0), (5.0, 1.0), (1.0, 2.0)]
  3. >>> list(poly2.exterior.coords)
  4. [(1.0, 2.0), (2.0, 5.0), (6.0, 5.0), (7.0, 2.0), (5.0, 1.0), (1.0, 2.0)]
  5. >>> list(poly2.interiors[0].coords)
  6. [(3.0, 4.0), (2.0, 2.0), (5.0, 2.0), (6.0, 4.0), (3.0, 4.0)]