How linz/topographic-qgis-plugin works
Topographic Mapping is a QGIS plugin for editing topographic feature layers, managing labels and styles, and validating mapped data. The main workflow is a QGIS user choosing editing tools and a target layer, editing or labeling features, then reviewing validation results. The plugin also supports project/layer management, product-view creation, custom rock-outcrop symbols, and optional style downloads. Source excerpts show only part of the wiring; relationships not demonstrated in those excerpts or the source index are omitted.
Main entry points: plugin.py Plugin setup · labeling_gui_manager.py Labeling controls · stored_object_manager.py Plugin data storage · style_manager.py Layer styles
Components 24
Plugin and project
- Plugin setup
topographic_mapping/plugin.py - Project controller
topographic_mapping/core/project_controller.py - Editing state
topographic_mapping/core/state_manager.py - Plugin data storage
topographic_mapping/core/stored_object_manager.py - Plugin settings
topographic_mapping/settings.py - Product view utilities
topographic_mapping/core/db_utils.py - Markup management
topographic_mapping/core/markup_manager.py
Editing tools
- Tool registry
topographic_mapping/gui/tool_registry.py - Editing tool dock
topographic_mapping/gui/tool_dock.py - Feature editing dock
topographic_mapping/gui/edit_tool_dock.py - Feature type model
topographic_mapping/gui/feature_type_model.py
Labeling
- Labeling controls
topographic_mapping/gui/labeling_gui_manager.py - Label operations
topographic_mapping/core/label_manager.py - Label map tools
topographic_mapping/gui/label_tool_base.py - Label digitizing
topographic_mapping/gui/digitize_label_tool.py - Label wrapping
topographic_mapping/gui/label_wrap_tool.py - Label selection
topographic_mapping/gui/select_by_label_tool.py
Validation
- Validation dock
topographic_mapping/gui/validation_dock.py - Validation results
topographic_mapping/core/validation_results_model.py - Validation checks
topographic_mapping/core/validation_utils.py
Styles and symbols
- Layer styles
topographic_mapping/gui/style_manager.py - Rock outcrop symbol
topographic_mapping/core/symbol_layers/rock_outcrop.py - Symbol settings widget
topographic_mapping/gui/symbol_layers/rock_outcrop_widget.py
Other components
- QGIS user
Connections 20
- QGIS user → Editing tool dock: uses tools
topographic_mapping/gui/tool_dock.py - Plugin setup → Project controller: creates
topographic_mapping/plugin.py - Plugin setup → Editing tool dock: adds dock
topographic_mapping/plugin.py - Plugin setup → Labeling controls: registers tools
topographic_mapping/plugin.py - Plugin setup → Rock outcrop symbol: registers symbol
topographic_mapping/plugin.py - Tool registry → Editing state: tracks selection
topographic_mapping/gui/tool_registry.py - Feature editing dock → Feature type model: uses model
topographic_mapping/gui/edit_tool_dock.py - Labeling controls → Tool registry: gets actions
topographic_mapping/gui/labeling_gui_manager.py - Labeling controls → Label selection: creates tool
topographic_mapping/gui/labeling_gui_manager.py - Labeling controls → Label digitizing: sets target
topographic_mapping/gui/labeling_gui_manager.py - Label map tools → Label operations: supports labeling
- Labeling controls → Label wrapping: activates tool
topographic_mapping/gui/labeling_gui_manager.py - Validation dock → Validation results: displays results
- Validation checks → Plugin data storage: reads objects
topographic_mapping/core/validation_utils.py - Markup management → Plugin data storage: uses storage
topographic_mapping/core/markup_manager.py - Layer styles → Project controller: styles layers
topographic_mapping/gui/style_manager.py - Symbol settings widget → Rock outcrop symbol: configures symbol
topographic_mapping/gui/symbol_layers/rock_outcrop_widget.py - Plugin setup → Product view utilities: creates views
topographic_mapping/plugin.py - Plugin setup → Editing state: initializes state
- Layer styles → Plugin data storage: stores downloads
topographic_mapping/gui/style_manager.py