I am using QGIS (before, I used ArcView). I would like to know if there is any way during the editing phase of a vector (line or polygon) to know the length of the line (total and partial) that is being created. Thanks.
There is one option available in the Attribute toolbar (named
I don't know of any built-in tools that track the length of lines as you are editing.
Assuming you are already Editing a layer, one work-around would be (in qGIS 2.0.x):
This will give you the length of the line as it is in your current edit session.
If you keep the attribute table window open while editing, you can recalculate the column whenever you want.
You could also just run code in the python console to recalculate the attribute values whenever you want to update them. I was hoping to find some python code for qGIS to do this faster than the Attribute Table window UI, but couldn't find any. So I dug a bit and figured out one way to do it.
A script I came up with using this tutorial and the Developer Cookbook is below. I assumes that you are currently in an Editing session with the polyline layer you are editing (and want the lengths for) selected. No features are selected.
In QGIS 2.6+ when creating a new field, you can now check the option "create virtual field". When you do this, QGIS will automatically update the field based on the expression. In this case, updating the calculated length. You can keep the attribute table open while editing and see the updates instantly.
Maybe this can help!
You can determine the length of a line/segment with the Improved Polygon Capturing plugin.