class MultiLineString(*args, **kwargs)
MultiLineString
objects may be instantiated by passing in LineString
objects as arguments, or a single sequence of LineString
objects:
>>> ls1 = LineString((0, 0), (1, 1)) >>> ls2 = LineString((2, 2), (3, 3)) >>> mls = MultiLineString(ls1, ls2) >>> mls = MultiLineString([ls1, ls2])
Changed in Django 1.10:
In previous versions, an empty MultiLineString
couldn’t be instantiated.
-
merged
-
Returns a
LineString
representing the line merge of all the components in thisMultiLineString
.
-
closed
-
New in Django 1.10.
Returns
True
if and only if all elements are closed. Requires GEOS 3.5.
Please login to continue.