| 1626 | """ |
| 1627 | |
| 1628 | class ExtendedPolygon(Polygon): |
| 1629 | def __init__(self, *args, data=0, **kwargs): |
| 1630 | super().__init__(*args, **kwargs) |
| 1631 | self._data = data |
| 1632 | |
| 1633 | def __str__(self): |
| 1634 | return "EXT_POLYGON - data: %d - %s" % (self._data, self.wkt) |
| 1635 | |
| 1636 | ext_poly = ExtendedPolygon(((0, 0), (0, 1), (1, 1), (0, 0)), data=3) |
| 1637 | self.assertEqual(type(ext_poly), ExtendedPolygon) |
no outgoing calls