âś… How to Create Line Layer, Add Lines & Edit Lines in QGIS
Â
🟡 Step 1: Create a New Line Layer
-
Open QGIS.
-
Go to the top menu:
Layer
 →ÂCreate Layer
 →ÂNew Shapefile Layer…
-
In the dialog box:
-
Geometry Type: Select Line
-
CRS (Coordinate Reference System): Choose WGS 84 (EPSG:4326) or your project CRS.
-
Add fields:
-
Example:
-
Name
 – Text (String) -
ID
 – Whole Number (Integer)
-
-
-
-
Click OK
-
Save the file (e.g.,Â
My_Lines.shp
)
🟡 Step 2: Add the Line Layer to Map Canvas
-
The new line layer will automatically appear in the Layers panel and on the map canvas.
🟡 Step 3: Toggle Editing Mode
-
Right-click on your line layer → Toggle Editing
or click the ✏️ pencil icon on the top toolbar.
🟡 Step 4: Add Line Features
-
Select the “Add Line Feature” tool (icon: ➖ with a plus symbol).
-
Click on the map canvas to start drawing a line:
-
Click to add vertices.
-
Right-click to finish the line.
-
-
A form will appear → Fill in the attributes (e.g., Name, ID)
-
Click OK
-
Repeat to add more lines.
🟡 Step 5: Save and Exit Editing
-
Click 💾 Save Layer Edits
-
Then click ✏️ Toggle Editing to stop editing.
✏️ How to Edit Existing Lines
-
Enable editing: Right-click the layer → Toggle Editing
-
Use these tools:
-
Select Features by Area/Polygon → select the line you want to edit.
-
Vertex Tool → move, add, or delete vertices on the line.
-
Cut Features → split a line.
-
Node Tool → fine-tune geometry.
-
-
After editing:
-
Click 💾 Save Layer Edits
-
Click ✏️ Toggle Editing to exit edit mode.
-
✅ You’re Done!
You now know how to create, draw, and edit line features in QGIS.