MCPcopy
hub / github.com/django/django / ExtendedPolygon

Class ExtendedPolygon

tests/gis_tests/geos_tests/test_geos.py:1628–1634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

test_subclassingMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_subclassingMethod · 0.68