QGIS – Basics (Free Course)

âś… How to Create Line Layer, Add Lines & Edit Lines in QGIS


 

🟡 Step 1: Create a New Line Layer

  1. Open QGIS.

  2. Go to the top menu:

    Layer → Create Layer → New Shapefile Layer…

  3. 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)

  4. Click OK

  5. 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

  1. Right-click on your line layer → Toggle Editing
    or click the ✏️ pencil icon on the top toolbar.


🟡 Step 4: Add Line Features

  1. Select the “Add Line Feature” tool (icon: ➖ with a plus symbol).

  2. Click on the map canvas to start drawing a line:

    • Click to add vertices.

    • Right-click to finish the line.

  3. A form will appear → Fill in the attributes (e.g., Name, ID)

  4. Click OK

  5. 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

  1. Enable editing: Right-click the layer → Toggle Editing

  2. 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.

  3. 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.

error: Content is protected !!