Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

load shapefile fiona multiline intersection

from shapely.geometry import shape
import fiona
Multilines = MultiLineString([shape(line['geometry']) for line in fiona.open("lines.shp")])
Poly = shape(fiona.open("one_poly.shp").next()['geometry'])
Multilines.intersection(Poly)
<shapely.geometry.multilinestring.MultiLineString object at 0x1093285d0>
Source by gis.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #load #shapefile #fiona #multiline #intersection
ADD COMMENT
Topic
Name
4+9 =