MCPcopy
hub / github.com/django/django / LinearRing

Class LinearRing

django/contrib/gis/geos/linestring.py:185–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184# LinearRings are LineStrings used within Polygons.
185class LinearRing(LineString):
186 _minlength = 4
187 _init_func = capi.create_linearring
188
189 @property
190 def is_counterclockwise(self):
191 if self.empty:
192 raise ValueError("Orientation of an empty LinearRing cannot be determined.")
193 return self._cs.is_counterclockwise

Callers 15

_construct_ringMethod · 0.90
test_proxyMethod · 0.90
test_geometryfieldMethod · 0.90
test_coveredby_lookupMethod · 0.90
test_covers_lookupMethod · 0.90
test05_PolygonMethod · 0.90
test_linearringMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_proxyMethod · 0.72
test_geometryfieldMethod · 0.72
test_coveredby_lookupMethod · 0.72
test_covers_lookupMethod · 0.72
test05_PolygonMethod · 0.72
test_linearringMethod · 0.72
test_linearring_jsonMethod · 0.72