I'm looking for a method to add perpendicular lines at points along a polyline. Essentially I'm searching for a solution in QGIS or Python (I'm aware of an ArcGIS solution available here: http://www.arcgis.com/home/item.html?id=3f05ef15203e4a3ca88fc1d92347512b.

enter image description here

A similar question (How to add a perpendicular line to the start & end nodes of every polyline?) addresses what I'm looking to achieve, but again, I need a QGIS/Python solution.

Does anybody have any advice? Currently I'm using the QChainage plugin to generate equally spaced points across lines (see below), but can't find a method to generate perpendicular lines from the points.

enter image description here

Browse other questions tagged or ask your own question.