Commit 3a41249b authored by Kris Vanneste's avatar Kris Vanneste
Browse files

Added from_lines method to MultiLineData.

git-svn-id: 40b490c5-b4d9-47cb-8714-9bef99b524d5
parent 546d5650
......@@ -234,3 +234,18 @@ class MultiLineData(MultiData):
def from_ogr(cls, geom, values=None, labels=None, style_params=None):
return cls.from_wkt(geom.ExportToWkt(), values=values, labels=labels,
def from_lines(cls, line_list):
Construct from list of lines
:param line_list:
list with instances of :class:`LineData`
ml = line_list[0].to_multi_line()
for line in line_list[1:]:
return ml
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment