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

closed as off-topic by PolyGeo Jul 4 '18 at 21:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.