✂️ Polygon Splitter
Available from v3.0.0
This tool is built upon the Split Features On Steroids plugin, featuring enhancements and adaptations tailored to Resurvey requirements.
The Polygon Splitter provides a dedicated interactive environment for precisely dividing polygon features. It opens a custom window with a map canvas where you can draw split lines, edit vertices, automatically adjust areas to target values, and add measurement markers.
🚀 Getting Started
Launching the Tool
- Load a polygon layer in QGIS.
- Select the polygon layer in the Layers panel.
- Click the Polygon Splitter icon from the Gruhanaksha plugin menu.
- A new window titled "Gruhanaksha Polygon Splitter" will open.
Interface Overview
The Polygon Splitter window contains:
- Map Canvas: Displays your selected layers and features. This mirrors the main QGIS canvas.
- Toolbar: Contains all editing and measurement tools (detailed below).
- Unit Selector: Dropdown menu to choose measurement units for areas and lengths.
- Area Units: Acres, Hectares, Sq Meters, Sq Feet, Sq Yards, Guntas
- Linear units are automatically paired with area units (e.g., feet with acres)
- Layer Selection Button: Choose which layers to display in the splitter canvas.
Changing Measurement Units
The Unit Selector dropdown is located in the toolbar and allows you to change how areas and lengths are displayed.
How to Use:
- Click the Unit Selector dropdown in the toolbar.
- Choose your preferred unit from the list:
- Acres (with feet for linear measurements)
- Hectares (with meters for linear measurements)
- Sq Meters (with meters for linear measurements)
- Sq Feet (with feet for linear measurements)
- Sq Yards (with yards for linear measurements)
- Guntas (with feet for linear measurements)
- All area and length labels will immediately update to show values in the selected unit.
- The unit change applies to:
- Real-time area calculations during splitting
- Segment length labels
- The "Adjust Area" tool target values
- Marker distance measurements
🛠️ Toolbar Tools - Detailed Guide
| Select Features |
|---|
Purpose: Select polygon features to split.
How to Use:
- Click the Select Features button (this is the default tool).
- Click on any polygon in the canvas to select it.
- Selected features will be highlighted in yellow.
- Hold Ctrl to select multiple polygons.
| Start Splitting |
|---|
Purpose: Draw a line across the polygon to define where it will be split.
How to Use:
- Click the Start Splitting button.
- Click on the map to place the first point of your split line.
- Continue clicking to add more points along the desired split path.
- As you draw, you'll see:
- A red solid line showing the drawn portion
- A red dotted line previewing the next segment
- Area labels showing the size of each resulting part
- Length labels on new segments created by the split
- Right-click or press Enter to finish drawing the line.
- The split will be performed immediately.
| Move Vertices |
|---|
Purpose: Adjust the position of individual points on the split line.
How to Use:
- Draw a split line first (don't finish it yet).
- Click the Move Vertices button.
- Click and drag any vertex (point) on the split line to a new position.
- The line will update in real-time, showing new area calculations.
- Vertices snap to nearby features if snapping is enabled.
- Right-click when done to perform the split.
| Add Vertices |
|---|
Purpose: Insert new points along the split line for more control.
How to Use:
- Draw a split line with at least 2 points.
- Click the Add Vertices button.
- Click on any segment (line between two points) where you want to add a new vertex.
- A new point will be inserted at that location.
- You can add multiple vertices.
- Right-click when done to perform the split.
| Remove Vertices |
|---|
Purpose: Delete unnecessary points from the split line.
How to Use:
- Draw a split line with at least 3 points.
- Click the Remove Vertices button.
- Click on any vertex (point) you want to remove.
- The vertex will be deleted and the line will reconnect.
- You cannot remove vertices if only 2 points remain.
- Right-click when done to perform the split.
| Move Segment |
|---|
Purpose: Shift an entire segment (line between two points) while keeping it parallel to its original direction.
How to Use:
- Draw a split line with at least 3 points.
- Click the Move Segment button.
- Click and drag on a segment (not a vertex).
- The segment will move parallel to itself, adjusting the adjacent vertices.
- Useful for fine-tuning the split position without changing the angle.
- Right-click when done to perform the split.
| Close Line |
|---|
Purpose: Connect or disconnect the start and end points of the split line to create a closed loop.
How to Use:
- Close Line
- Draw a split line with at least 3 points.
- Click Close Line.
- The last point will connect to the first point, creating a closed polygon.
- Useful for creating enclosed areas within a polygon.
| Open Line |
|---|
- Open Line
- If you have a closed line, click Open Line.
- The connection between start and end will be removed.
| Move Line |
|---|
Purpose: Shift the entire split line to a new position without changing its shape.
How to Use:
- Draw a split line.
- Click the Move Line button.
- Click and drag anywhere on the canvas.
- The entire line will move parallel to the drag direction.
- All vertices maintain their relative positions.
- Right-click when done to perform the split.
| Adjust Area |
|---|
Purpose: Automatically adjust the split line to achieve a specific target area for one of the resulting parts.
How to Use:
- Draw a split line across the polygon.
- Click the Adjust Area button.
- A dialog will appear showing the current areas of each part.
- Select the part you want to adjust (e.g., "Part 1").
- Enter the target area value (e.g., "20" for 20 Guntas).
- Ensure the Unit Selector in the toolbar shows the correct unit.
- Click Adjust.
- The tool will automatically shift the split line perpendicular to its direction to match the target area.
- The algorithm uses iterative calculations to find the exact position.
Note: If the target area is impossible (e.g., larger than the total polygon area), the adjustment will fail with a warning.
| Add Marker |
|---|
Purpose: Place temporary reference markers on the canvas to verify distances and measurements.
How to Use:
- Click the Add Marker button.
- Click anywhere on the map to place a red square marker.
- The marker will snap to the nearest polygon boundary.
- As you move the mouse, you'll see distance labels showing:
- Distance from the marker to the start of the boundary segment
- Distance from the marker to the end of the boundary segment
- Place multiple markers to create reference points.
Editing Markers:
- Right-click on an existing marker.
- The Edit Marker Distance dialog will open.
- You can:
- Adjust Distance: Type an exact distance value (e.g., "15.5") to move the marker along the boundary segment.
- The two input fields show "Distance from Start" and "Distance from End" - they update automatically as you type.
- Delete Marker: Click the "Delete Marker" button to remove it.
Note: Markers are visual guides only and do not affect the split operation.
| Snap Toggle |
|---|
Purpose: Enable or disable snapping to existing features.
How to Use:
- Click the Snap Toggle button to turn snapping on or off.
- When enabled (button appears pressed), vertices and markers will snap to:
- Existing polygon vertices
- Polygon edges
- Other features in the canvas
- Configure snapping settings in the main QGIS window for more control.
📝 Basic Workflow
Here's the typical process for splitting a polygon:
- Select Layers: Click "Select Layers" to choose which layers to display.
- Select Feature: Click on a polygon to select it (it will highlight in yellow).
- Draw Split Line:
- Click "Start Splitting"
- Click points to draw the line across the polygon
- Watch the area labels update in real-time
- Refine (Optional):
- Use Move/Add/Remove Vertices to perfect the line
- Use "Adjust Area" if you need an exact area value
- Perform Split:
- Right-click or press Enter
- The polygon will be split into separate features
- Save: Save your edits in the main QGIS window (Ctrl+S).
⌨️ Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| Ctrl + Z | Undo last action |
| Ctrl + Y | Redo last undone action |
| Esc | Stop current operation / Cancel tool |
| Enter | Finish drawing split line |
| Right-Click | Finish drawing line OR Perform split |
| Backspace or Delete | Remove last vertex while drawing |
💡 Best Practices
Snapping Configuration
- Configure snapping settings in QGIS before starting (Settings → Snapping Options).
- Set an appropriate snapping tolerance (e.g., 10 pixels).
- Enable snapping to vertices and segments for precision.
- Use the Snap Toggle in the toolbar to quickly enable/disable snapping.
Layer Management
- Use the "Select Layers" button to show only relevant layers in the splitter window.
- Lock layers you don't want to edit accidentally.
- Temporarily hide layers to reduce visual clutter.
Working with Complex Splits
- For complex geometries, work incrementally - split in stages rather than all at once.
- Use the "Add Marker" tool to verify measurements before finalizing splits.
- Use "Adjust Area" for precise land parcel divisions where exact areas are required.
- Save frequently to prevent data loss.
Undo/Redo
- Use Ctrl+Z to undo mistakes immediately.
- The undo/redo functionality works for both drawing operations and completed splits.
- Undo history is maintained even after performing a split.
🌍 Common Use Cases
- Land Parcel Division: Divide large parcels into smaller plots with exact area requirements.
- Boundary Adjustments: Correct or modify existing polygon boundaries.
- Resurvey Operations: Split parcels according to survey measurements using markers for verification.
- Property Subdivision: Create new property boundaries with precise area calculations.
🎉 Conclusion
The Polygon Splitter tool provides a powerful, interactive environment for precise polygon division. With real-time area calculations, automatic area adjustment, and comprehensive editing tools, it streamlines complex splitting operations while maintaining accuracy. Whether you're dividing land parcels, adjusting boundaries, or performing detailed resurvey work, this tool offers the flexibility and precision needed for professional GIS editing.