Skip to main content

๐Ÿ“ Advanced Line

Available from v1.0.1

The Professional Line Tool is an advanced QGIS plugin that provides enhanced line drawing capabilities with precise measurement, angle control, and circle creation features. It's designed for surveyors, engineers, and GIS professionals who need accurate geometric drawing tools.

๐Ÿš€ Getting Startedโ€‹

โœ… Prerequisitesโ€‹

  • QGIS with an active, editable vector layer (line geometry)
  • Layer must be in edit mode

๐Ÿ”ง Installation & Activationโ€‹

  1. Click on Advanced line Icon in the toolbar
  2. The tool will be activated on your map canvas

๐ŸŽฎ Basic Controlsโ€‹

โŒจ๏ธ Quick Reference - All Keyboard Shortcutsโ€‹

Key๐ŸŽฏ Function๐Ÿ“ Description
L๐Ÿ“ Length/ParametersOpen parameter dialog for precise length/angle input
O๐Ÿ“ Ortho ModeToggle orthogonal drawing (constrains to 45ยฐ increments)
A๐Ÿ”’ Angle LockCycle: 90ยฐ Lock โ†’ 180ยฐ Lock โ†’ Off (double-tap to cancel)
R๐Ÿ”„ Shape ModeCycle: Line โ†’ Circle โ†’ Rectangle โ†’ Line
Q๐Ÿ“Š Units CycleSwitch between: Meters โ†’ Metric Links โ†’ Gunter Links โ†’ Feet โ†’ Yards
S๐ŸŽฏ Snap ToggleEnable/disable snapping to layers and vertices
Uโ†ฉ๏ธ Undo PointRemove the last placed point from current line
C๐Ÿ”„ Close LineConnect current line back to start point (close polygon)
Enterโœ… Finish LineComplete and save the current line to layer
Returnโœ… Finish LineSame as Enter - complete current line
EscapeโŒ CancelCancel current operation or exit preview mode

๐Ÿ–ฑ๏ธ Mouse Controlsโ€‹

ActionFunction
Left ClickAdd point / Start line / Confirm action
Right ClickFinish line / Open parameter dialog
Mouse MovePreview line / Update cursor info

๐Ÿ“ Drawing Modesโ€‹

๐Ÿ–Š๏ธ Standard Line Drawingโ€‹

  1. Start: Left-click to place first point
  2. Continue: Move mouse and left-click to add more points
  3. Press L to enter precise Length
  4. Finish: Right-click or press Enter to complete line

Visual Feedback:

  • ๐ŸŸข Green markers show placed points
  • ๐Ÿงฒ Pink marker indicates snap points
  • ๐Ÿ“ Live length and angle display in cursor info

โญ• Circle Drawing Modeโ€‹

Press R to enter circle mode.

Method 1: Center-Radius

  1. Left-click to set circle center
  2. Move mouse to desired radius
  3. Left-click to create circle

Method 2: Center + Precise Radius

  1. Left-click to set circle center
  2. Press L to enter precise radius
  3. Enter radius value and click Apply

โ–ญ Rectangle Drawing Modeโ€‹

Available from v2.1.0

Press R twice from line mode, or press R again from circle mode, to enter rectangle mode.

Method 1: Freehand Rectangle

  1. Left-click to set first corner
  2. Left-click to set second corner
  3. Left-click to set third corner (determines rectangle shape)
  4. Rectangle is automatically created

Method 2: Fixed Dimensions

  1. Press L to set width and/or height
  2. Left-click to set first corner
  3. Left-click to set rectangle direction and size
  4. Rectangle is automatically created

Features:

  • ๐Ÿ”’ Angle Lock: Press A to toggle 90ยฐ angle constraints
  • ๐Ÿ“ Fixed Dimensions: Use L key to set precise width/height
  • ๐ŸŽฏ Smart Snapping: Snaps to existing geometry and vertices

๐ŸŽฏ Advanced Featuresโ€‹

๐Ÿ”’ Angle Lock Systemโ€‹

Press A to cycle through angle lock modes:

  1. First Press: ๐Ÿ”’ 90ยฐ Lock

    • Constrains lines to 90ยฐ increments from previous segment
    • For first segment: locks to cardinal directions (N, E, S, W)
  2. Second Press: ๐Ÿ”’ 180ยฐ Lock

    • Constrains lines to 180ยฐ (parallel/perpendicular)
    • For first segment: locks to N-S or E-W axes
  3. Third Press: โŒ Cancel Lock

    • Returns to free drawing

Double-tap A: Quick cancel of current lock

๐Ÿ“ Orthogonal Modeโ€‹

Press O to toggle ortho mode:

  • Constrains all lines to 45ยฐ increments
  • Works independently of angle lock
  • Visual indicator in cursor info

๐Ÿ“ Parameter Dialog (Press L)โ€‹

Enter precise measurements:

Length Input:

  • ๐Ÿ”ข Precise length value
  • ๐Ÿ”„ Auto-converts between units
  • ๐Ÿ“Š Supports 5 unit types

Angle Input:

  • โ˜‘๏ธ Enable "Use Angle" checkbox
  • ๐ŸŽฏ Enter angle in degrees (0ยฐ = North, clockwise)
  • ๐ŸŽฎ Quick angle buttons: 0ยฐ, 45ยฐ, 90ยฐ, 135ยฐ, 180ยฐ, 225ยฐ, 270ยฐ, 315ยฐ

๐Ÿ“Š Unit Systemโ€‹

Press Q to cycle through supported units:

UnitNameSymbolConversion Factor
mMetersm1.0
mliMetric LinksMetric0.2
liGunter LinksGunter0.201168
ftFeetft0.3048
ydYardsyd0.9144

Features:

  • ๐Ÿ”„ Automatic conversion between units
  • ๐Ÿ’พ Values preserved when switching units
  • ๐Ÿ“Š Live display in cursor info

๐ŸŽฏ Enhanced Snappingโ€‹

The tool provides intelligent snapping:

QGIS Layer Snapping:

  • ๐ŸŽฏ Respects project snapping settings
  • ๐Ÿ”ง Toggle with S key

Custom Vertex Snapping:

  • ๐ŸŸข Automatically snaps to your drawn points
  • ๐ŸŽฏ Only active when QGIS snapping is enabled
  • ๐Ÿงฒ Pink marker indicates snap target

Custom Segment Snapping:

  • ๐ŸŸข Automatically snaps to your drawn line segments
  • ๐ŸŽฏ Only active when QGIS snapping is enabled
  • ๐Ÿงฒ Pink marker indicates snap target

๐Ÿ“‹ Cursor Information Displayโ€‹

The live cursor info shows:

  • ๐Ÿ“ Length: Current segment length in selected units
  • ๐Ÿ“ Angle: Direction in degrees (N=0ยฐ clockwise)
  • ๐ŸŽฎ Mode: Current drawing mode/state
  • ๐ŸŽฏ Snap Status: ON/OFF + Vertex indication
  • ๐Ÿ“Š Unit: Currently selected unit

Auto-scaling Display:

  • Values < 1: Show 4 decimal places
  • Values < 1000: Show 3 decimal places
  • Values โ‰ฅ 1000m: Auto-convert to kilometers

๐Ÿ“ Workflow Examplesโ€‹

๐Ÿ—๏ธ Example 1: Property Boundary Surveyโ€‹

1. Set units to feet: Press Q until "Feet" is selected
2. Start at corner: Left-click first point
3. Enter precise distance: Press L, enter "150 ft", Apply
4. Move mouse to direction and click to confirm
5. Use angle lock: Press A for 90ยฐ constraint
6. Continue adding segments with precise measurements
7. Close boundary: Press C to connect back to start

๐Ÿ—๏ธ Example 2: Building Layoutโ€‹

1. Enable ortho mode: Press O
2. Start at building corner: Left-click
3. Draw first wall: Move mouse east, left-click
4. Use angle lock: Press A for 90ยฐ increments
5. Continue around building perimeter
6. Use parameter dialog: Press L for precise room dimensions
7. Finish: Press Enter when complete

๐Ÿ—๏ธ Example 3: Circular Featuresโ€‹

1. Enter circle mode: Press R
2. Click center point of circular feature
3. For precise radius: Press L, enter radius value
4. For visual radius: Move mouse and click at desired edge
5. Return to line mode: Press R again

๐Ÿ—๏ธ Example 4: Rectangle Drawingโ€‹

1. Enter rectangle mode: Press R twice
2. For fixed dimensions: Press L, set width and height
3. Click first corner of rectangle
4. Click to set direction and size
5. Rectangle is automatically created
6. For freehand: Skip L, click three corners instead

โš ๏ธ Troubleshootingโ€‹

๐Ÿ”ด Common Issuesโ€‹

Tool won't activate:

  • โœ… Ensure you have an active vector layer
  • โœ… Layer must have line geometry type
  • โœ… Layer must be in edit mode

No cursor info display:

  • ๐Ÿ–ฑ๏ธ Move mouse over the canvas
  • ๐Ÿ”„ Tool activates on canvas focus

Snapping not working:

  • ๐ŸŽฏ Check QGIS project snapping settings
  • ๐Ÿ”ง Press S to toggle tool snapping
  • โš™๏ธ Verify layer snapping configuration

Parameter dialog issues:

  • ๐Ÿ“ Ensure positive length values
  • ๐Ÿ”„ Check unit conversions are reasonable
  • โœ… Click Apply button to confirm

๐Ÿ’ก Tips for Best Resultsโ€‹

  1. ๐ŸŽฏ Accuracy: Use parameter dialog (L) for precise measurements
  2. โšก Speed: Use angle lock (A) for repetitive geometric patterns
  3. ๐Ÿ”ง Workflow: Enable ortho mode (O) for architectural drawings
  4. ๐Ÿ“Š Units: Set appropriate units before starting complex drawings
  5. ๐Ÿ’พ Save Often: Remember to save your edits regularly

๐ŸŽจ Visual Indicatorsโ€‹

ColorMeaning
Green BoxPlaced vertex points
Pink BoxActive snap point
Gray DashedPreview line