16

In QGIS I want to create perpendicular Lines on another Line (River). The Lines should be created on points on the Line and should have a length of 40 Meters. I want to create the red lines in the picture below (for the complete River).

This is what I mean

Babel
  • 71,072
  • 14
  • 78
  • 208
KartenLappen
  • 177
  • 1
  • 1
  • 4
  • 2
    Is this a display issue, or do you need the line geometry? – Erik Nov 27 '20 at 09:06
  • 2
    I need the geometry. – KartenLappen Nov 27 '20 at 10:08
  • 3
    The points are distributed on the line with a constant distance? Then I suggest you use GRASS GIS plug-in ''v.transects" , https://grass.osgeo.org/grass78/manuals/addons/v.transects.html – MarcM Nov 27 '20 at 10:47
  • 1
    Updated my answer to create geometries – Babel Nov 27 '20 at 12:03
  • 2
    @MarcM: v.transects is not available in QGIS, at least not in my installation QGIS 3.16.0 with GRASS 7.8.4. on Win10. So it can't be done from QGIS – Babel Nov 27 '20 at 12:09
  • 1
    @babel thanks for the heads up, I was not aware. Then I suggest your solution which is short and effective! – MarcM Nov 27 '20 at 12:12
  • 1
    @MarcM Didn't konw about this GRASS-function, so great to learn about it. It involves using a standalone GRASS installation - so it depends if that is an option. However strange that v.transects is not included in the GRASS functions available from QGIS. Should be implemented – Babel Nov 27 '20 at 12:16
  • Do points exist already or did you add them to explain your problem? – Kadir Şahbaz Nov 27 '20 at 17:09
  • 1
  • Lengthen your starting line in two directions by 50 m with "Transect"; 2) Create new points after 100 m; 3) PointstoPath; 4) Blown up; 5) Rotate by 90 degrees; 6) Buffer on the line of p.1 - 40 m; 7) Cropping by buffer p.6 - p.5...
  • – Cyril Mikhalchenko Nov 29 '20 at 11:37
  • 1
    @Cyril Mikhalchenko: interesting approach. Maybe you should add it as an answer and elaborate a bit more on the different steps involved – Babel Nov 29 '20 at 21:53
  • 1
    I believe the correct answer is the one by Cyril. However, in QGIS 3.18.2 there is the "transect" tool that does what you are looking for. No need for exploding lines and rotating them. Just 1. draw river center line 2. "points along geometry" --> draw points at wanted distance 3. "points to path" (order expression "distance") --> connect created points 4. "transects" --> select desired length 5. "clip" (Input layer = transects, overlay layer = river polygon) – brodegon May 06 '21 at 13:04