๐ 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โ
- Click on Advanced line Icon in the toolbar
- The tool will be activated on your map canvas
๐ฎ Basic Controlsโ
โจ๏ธ Quick Reference - All Keyboard Shortcutsโ
| Key | ๐ฏ Function | ๐ Description |
|---|---|---|
| L | ๐ Length/Parameters | Open parameter dialog for precise length/angle input |
| O | ๐ Ortho Mode | Toggle orthogonal drawing (constrains to 45ยฐ increments) |
| A | ๐ Angle Lock | Cycle: 90ยฐ Lock โ 180ยฐ Lock โ Off (double-tap to cancel) |
| R | ๐ Shape Mode | Cycle: Line โ Circle โ Rectangle โ Line |
| Q | ๐ Units Cycle | Switch between: Meters โ Metric Links โ Gunter Links โ Feet โ Yards |
| S | ๐ฏ Snap Toggle | Enable/disable snapping to layers and vertices |
| U | โฉ๏ธ Undo Point | Remove the last placed point from current line |
| C | ๐ Close Line | Connect current line back to start point (close polygon) |
| Enter | โ Finish Line | Complete and save the current line to layer |
| Return | โ Finish Line | Same as Enter - complete current line |
| Escape | โ Cancel | Cancel current operation or exit preview mode |
๐ฑ๏ธ Mouse Controlsโ
| Action | Function |
|---|---|
| Left Click | Add point / Start line / Confirm action |
| Right Click | Finish line / Open parameter dialog |
| Mouse Move | Preview line / Update cursor info |
๐ Drawing Modesโ
๐๏ธ Standard Line Drawingโ
- Start: Left-click to place first point
- Continue: Move mouse and left-click to add more points
- Press L to enter precise Length
- 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
- Left-click to set circle center
- Move mouse to desired radius
- Left-click to create circle
Method 2: Center + Precise Radius
- Left-click to set circle center
- Press L to enter precise radius
- 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
- Left-click to set first corner
- Left-click to set second corner
- Left-click to set third corner (determines rectangle shape)
- Rectangle is automatically created
Method 2: Fixed Dimensions
- Press L to set width and/or height
- Left-click to set first corner
- Left-click to set rectangle direction and size
- 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:
-
First Press: ๐ 90ยฐ Lock
- Constrains lines to 90ยฐ increments from previous segment
- For first segment: locks to cardinal directions (N, E, S, W)
-
Second Press: ๐ 180ยฐ Lock
- Constrains lines to 180ยฐ (parallel/perpendicular)
- For first segment: locks to N-S or E-W axes
-
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:
| Unit | Name | Symbol | Conversion Factor |
|---|---|---|---|
| m | Meters | m | 1.0 |
| mli | Metric Links | Metric | 0.2 |
| li | Gunter Links | Gunter | 0.201168 |
| ft | Feet | ft | 0.3048 |
| yd | Yards | yd | 0.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โ
- ๐ฏ Accuracy: Use parameter dialog (L) for precise measurements
- โก Speed: Use angle lock (A) for repetitive geometric patterns
- ๐ง Workflow: Enable ortho mode (O) for architectural drawings
- ๐ Units: Set appropriate units before starting complex drawings
- ๐พ Save Often: Remember to save your edits regularly
๐จ Visual Indicatorsโ
| Color | Meaning |
|---|---|
| Green Box | Placed vertex points |
| Pink Box | Active snap point |
| Gray Dashed | Preview line |