Take the 2-minute tour ×  I'm having a hard time getting off the
ground with this, and am trying to move away from ArcGIS /
arcpy.  I have a shapefile with a network of polylines. I want
to find/count all 2-way intersections, 3-way intersections,
4-way, etc. This would involve, I think:    • splitting all
lines at intersections    • deleting identical segments (with
some spatial tolerance)    • create points at the end of each
new line segment    • buffer the line ends, and count the number
of points near/at each line end  I would like to do this in a
python script. Is this overall plan easily implementable in
pyQGIS? An outline of the calls I would be using would be very
helpful.  share|improve this question Taking the first part, if
it's of any help GRASS v.clean break (in the Sextante toolbox)
will split polylines at line intersections, into new polylines.
N. –  nhopton Aug 14 '12 at 9:43  1 Answer 1  There are a number
of ways to approach this and several different ready-to-go
python modules at your dispo