gis.geos.MultiLineString

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 this MultiLineString.

closed
New in Django 1.10.

Returns True if and only if all elements are closed. Requires GEOS 3.5.

doc_Django
2016-10-09 18:38:28
Comments
Leave a Comment

Please login to continue.