Quick summary
This demo shows how to draw a line in QGIS by creating a new shapefile layer with a LineString geometry type and using the Add Line tool to digitize a line feature on the map canvas.
Steps
- Click 'Layer' at the top menu, select 'Create Layer', then choose 'New Shapefile Layer'.
- Set the geometry type to 'LineString' and configure the other layer details.
- Click 'OK' once the shapefile settings are complete.
- Select the created shapefile layer, then click the 'Toggle Editing' (pencil icon) in the top menu.
- Click the 'Add Line' tool from the toolbar.
- Drag along the map layout to draw the line, right-click to finish, enter a feature ID, then click 'OK'.
- You have successfully created a line feature in QGIS.
