What is the fastest way to save MultiLineString to Shapefile (without attributes) and KML/KMZ? Preferred open-source libraries like fiona, shapely etc.
from osgeo import ogr multiline = ogr.Geometry(ogr.wkbMultiLineString) for (X1, Y1, X2, Y2) in coordinates: line = ogr.Geometry(ogr.wkbLineString) line.AddPoint(X1, Y1) line.AddPoint(X2, Y2) multiline.AddGeometry(line1)
When I print the multiline on the console:
I get something like this:
MULTILINESTRING ((10.0 15.0 0,10.5 15.5 0),(20.0 25.0 0,20.5 25.5 0))
I would like to save these two lines to Shapefile and KML/KMZ as two separate lines.