3

I have a line and I want to find and label the distance between the nodes (like the cad aligned distance). The v.distance GRASS tool from Processing Toolbox outputs an empty vector file. Is there another way?

Final image

5
  • So, saved line vector as dxf > opened it in a CAD program> exploded it > opened dxf in qgis > saved as vector > new column in attr table > $length > label it. But still don't know why v.dist cannot give result if someone can help, please suggest an answer.
    – Pitheas
    Apr 29, 2015 at 16:33
  • 1
    Are you using projected coordinate systems or WGS 84? Also why would you want to use v.distance instead of calculating the length as an attribute? Apr 29, 2015 at 17:03
  • I am using Greek grid.I understand that v.distance will give a result like the picture i have with my question,so i can label the distances between the points.I need a line vector so i can render the text "above the line".
    – Pitheas
    Apr 29, 2015 at 17:50
  • You want something like this? picpaste.com/pics/line-cDE0fn12.1430330169.png Only thing is the line needs to be drawn from node-node Apr 29, 2015 at 17:56
  • yes but it is a little tiresome to right click and give id at each node.
    – Pitheas
    Apr 29, 2015 at 18:09

1 Answer 1

1

You can use GRASS tool v.split.vert and set the max number of vertices to 2. Then , you just need to label the created splitted layer.

split

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.