How gisintelugu/polygonsequentialnumbering works
PolygonSequentialNumbering is a QGIS plugin for assigning sequential values to polygon attributes. A user opens the plugin dialog for the active polygon layer, configures the target field and numbering options, then starts a map-tool session. The tool supports manual clicks, selected features, and spatial ordering; it edits layer attributes and provides highlighting and undo. The dialog also handles field selection/creation and numbering previews. Relationships are based on the excerpts and README; unsampled dialog and map-tool code may contain additional behavior not shown.
Main entry points: polygon_sequential_numbering.py Plugin controller · numbering_map_tool.py Numbering map tool · numbering_dialog.py Numbering dialog · __init__.py Plugin entry
Components 9
Plugin lifecycle
- Plugin entry
__init__.py - Plugin controller
polygon_sequential_numbering.py
Configuration UI
- Numbering dialog
numbering_dialog.py
Numbering session
- Numbering map tool
numbering_map_tool.py - Numbering modes
numbering_map_tool.py - Undo history
numbering_map_tool.py
QGIS runtime
- Polygon vector layer
- QGIS map canvas
Other components
- QGIS user
Connections 13
- QGIS user → Plugin entry: loads plugin
__init__.py - Plugin entry → Plugin controller: creates plugin
__init__.py - QGIS user → Plugin controller: starts plugin
polygon_sequential_numbering.py - Plugin controller → Numbering dialog: opens dialog
polygon_sequential_numbering.py - Numbering dialog → Polygon vector layer: reads and edits fields
numbering_dialog.py - Numbering dialog → Plugin controller: emits session settings
polygon_sequential_numbering.py - Plugin controller → Numbering map tool: creates tool
polygon_sequential_numbering.py - Plugin controller → QGIS map canvas: sets map tool
polygon_sequential_numbering.py - Numbering map tool → Numbering modes: dispatches numbering
numbering_map_tool.py - Numbering map tool → Polygon vector layer: reads and writes attributes
numbering_map_tool.py - Numbering map tool → Undo history: records changes
numbering_map_tool.py - Numbering map tool → QGIS map canvas: highlights features
numbering_map_tool.py - Plugin controller → Numbering map tool: requests undo
polygon_sequential_numbering.py