class LinearRing(*args, **kwargs)
LinearRing
objects are constructed in the exact same way as LineString
objects, however the coordinates must be closed, in other words, the first coordinates must be the same as the last coordinates. For example:
>>> ls = LinearRing((0, 0), (0, 1), (1, 1), (0, 0))
Notice that (0, 0)
is the first and last coordinate – if they were not equal, an error would be raised.
Please login to continue.