QGIS. Calculate length of lines in temporary draft layer

by JVL   Last Updated September 11, 2019 15:22 PM

In QGIS, I need to calculate the distance between certain points and save this information as a line shape file, in which the attribute of each element (line) is its length (distance between points).

For this I have created a temporary draft layer of lines to draw the lines and I have obtained this:

introducir la descripciĆ³n de la imagen aquĆ­

Now, how do I calculate the lengths and save them as an attribute of the elements?

Tags : qgis

Answers 1

Open the attribute table of your draft layer of lines and create a new field with the field calculator. Use $length or length ($geometry) to calculate the length of the lines in your layer. Be careful what you measure: "You need to use a Projected Coordinate Reference System with units of meters or feet to perform such calculations"

September 11, 2019 14:53 PM

Related Questions

Updated March 05, 2018 09:22 AM

Updated May 24, 2018 16:22 PM

Updated August 12, 2018 02:22 AM

Updated June 30, 2015 17:11 PM

Updated April 15, 2017 09:22 AM