# guzpab/geodip architecture

> Architecture diagram of the GitHub repository guzpab/geodip, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/guzpab/geodip
- Repository: https://github.com/guzpab/geodip

## Overview

GeoDip is a QGIS plugin for turning spreadsheet or CSV structural measurements into a styled Shapefile layer. The user opens the plugin dialog, selects coordinate and dip columns and output options, then runs plotting. The plugin reads the table, creates measurement features, writes the output, applies symbology and labels, and adds the result to the project. The README documents these capabilities; sampled code confirms the processing and layer setup. Some intermediate code is omitted, so edges reflect only visible calls or documented workflow.

Main entry points: [`geo_dip.py`](https://github.com/guzpab/geodip/blob/main/geo_dip.py) (Plugin controller), [`geo_dip_dialog.py`](https://github.com/guzpab/geodip/blob/main/geo_dip_dialog.py) (Input dialog), [`__init__.py`](https://github.com/guzpab/geodip/blob/main/__init__.py) (Plugin entry), [`geo_dip_dialog_base.ui`](https://github.com/guzpab/geodip/blob/main/geo_dip_dialog_base.ui) (Dialog form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_plugin["Plugin interface"]
  node_entry["Plugin entry<br/>[__init__.py]"]
  node_controller["Plugin controller<br/>[geo_dip.py]"]
  node_dialog["Input dialog<br/>[geo_dip_dialog.py]"]
  node_dialog_ui["Dialog form"]
end

subgraph group_processing["Measurement processing"]
  node_source_table["Measurement table"]
  node_table_reader["Table reader<br/>[geo_dip.py]"]
  node_feature_builder["Feature builder<br/>[geo_dip.py]"]
  node_crs_selection["CRS selection<br/>[geo_dip.py]"]
  node_attribute_copy["Attribute preservation<br/>[geo_dip.py]"]
end

subgraph group_output["Map output"]
  node_shapefile["Shapefile output<br/>[geo_dip.py]"]
  node_symbology["Symbol styling<br/>[geo_dip.py]"]
  node_labeling["Dip labeling<br/>[geo_dip.py]"]
  node_map_layer["Styled map layer<br/>[geo_dip.py]"]
end

node_geologist(("Geologist"))
node_qgis["QGIS project"]

node_geologist -->|"opens plugin"| node_entry
node_entry -->|"loads controller"| node_controller
node_controller -->|"opens dialog"| node_dialog
node_dialog -->|"loads form"| node_dialog_ui
node_geologist -->|"sets options"| node_dialog
node_source_table -->|"provides table"| node_table_reader
node_controller -->|"opens table"| node_table_reader
node_controller -->|"gets CRS"| node_crs_selection
node_controller -->|"copies columns"| node_attribute_copy
node_controller -->|"builds features"| node_feature_builder
node_table_reader -->|"reads records"| node_feature_builder
node_controller -->|"writes output"| node_shapefile
node_controller -->|"sets symbols"| node_symbology
node_controller -->|"sets labels"| node_labeling
node_controller -->|"adds layer"| node_map_layer
node_shapefile -->|"backs layer"| node_map_layer
node_symbology -->|"styles layer"| node_map_layer
node_labeling -->|"labels layer"| node_map_layer
node_crs_selection -->|"uses project CRS"| node_qgis
node_map_layer -->|"adds to project"| node_qgis

click node_entry "https://github.com/guzpab/geodip/blob/main/__init__.py"
click node_controller "https://github.com/guzpab/geodip/blob/main/geo_dip.py"
click node_dialog "https://github.com/guzpab/geodip/blob/main/geo_dip_dialog.py"
click node_dialog_ui "https://github.com/guzpab/geodip/blob/main/geo_dip_dialog_base.ui"
click node_table_reader "https://github.com/guzpab/geodip/blob/main/geo_dip.py"
click node_feature_builder "https://github.com/guzpab/geodip/blob/main/geo_dip.py"
click node_crs_selection "https://github.com/guzpab/geodip/blob/main/geo_dip.py"
click node_attribute_copy "https://github.com/guzpab/geodip/blob/main/geo_dip.py"
click node_shapefile "https://github.com/guzpab/geodip/blob/main/geo_dip.py"
click node_symbology "https://github.com/guzpab/geodip/blob/main/geo_dip.py"
click node_labeling "https://github.com/guzpab/geodip/blob/main/geo_dip.py"
click node_map_layer "https://github.com/guzpab/geodip/blob/main/geo_dip.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_controller,node_dialog,node_dialog_ui toneBlue
class node_source_table,node_table_reader,node_feature_builder,node_crs_selection,node_attribute_copy toneAmber
class node_shapefile,node_symbology,node_labeling,node_map_layer toneMint
class node_geologist,node_qgis toneIndigo
```

## Components

### Plugin interface

- [Plugin entry](https://github.com/guzpab/geodip/blob/main/__init__.py): `__init__.py`
- [Plugin controller](https://github.com/guzpab/geodip/blob/main/geo_dip.py): `geo_dip.py`
- [Input dialog](https://github.com/guzpab/geodip/blob/main/geo_dip_dialog.py): `geo_dip_dialog.py`
- [Dialog form](https://github.com/guzpab/geodip/blob/main/geo_dip_dialog_base.ui): `geo_dip_dialog_base.ui`

### Measurement processing

- **Measurement table**
- [Table reader](https://github.com/guzpab/geodip/blob/main/geo_dip.py): `geo_dip.py`
- [Feature builder](https://github.com/guzpab/geodip/blob/main/geo_dip.py): `geo_dip.py`
- [CRS selection](https://github.com/guzpab/geodip/blob/main/geo_dip.py): `geo_dip.py`
- [Attribute preservation](https://github.com/guzpab/geodip/blob/main/geo_dip.py): `geo_dip.py`

### Map output

- [Shapefile output](https://github.com/guzpab/geodip/blob/main/geo_dip.py): `geo_dip.py`
- [Symbol styling](https://github.com/guzpab/geodip/blob/main/geo_dip.py): `geo_dip.py`
- [Dip labeling](https://github.com/guzpab/geodip/blob/main/geo_dip.py): `geo_dip.py`
- [Styled map layer](https://github.com/guzpab/geodip/blob/main/geo_dip.py): `geo_dip.py`

### Other components

- **Geologist**
- **QGIS project**

## Connections

- Geologist → Plugin entry: opens plugin (evidence: `README.md`)
- Plugin entry → Plugin controller: loads controller (evidence: `__init__.py`)
- Plugin controller → Input dialog: opens dialog (evidence: `geo_dip.py`)
- Input dialog → Dialog form: loads form (evidence: `geo_dip_dialog.py`)
- Geologist → Input dialog: sets options (evidence: `README.md`)
- Measurement table → Table reader: provides table (evidence: `README.md`)
- Plugin controller → Table reader: opens table (evidence: `geo_dip.py`)
- Plugin controller → CRS selection: gets CRS (evidence: `geo_dip.py`)
- Plugin controller → Attribute preservation: copies columns (evidence: `geo_dip.py`)
- Plugin controller → Feature builder: builds features (evidence: `geo_dip.py`)
- Table reader → Feature builder: reads records (evidence: `geo_dip.py`)
- Plugin controller → Shapefile output: writes output (evidence: `geo_dip.py`)
- Plugin controller → Symbol styling: sets symbols (evidence: `geo_dip.py`)
- Plugin controller → Dip labeling: sets labels (evidence: `geo_dip.py`)
- Plugin controller → Styled map layer: adds layer (evidence: `geo_dip.py`)
- Shapefile output → Styled map layer: backs layer (evidence: `geo_dip.py`)
- Symbol styling → Styled map layer: styles layer (evidence: `geo_dip.py`)
- Dip labeling → Styled map layer: labels layer (evidence: `geo_dip.py`)
- CRS selection → QGIS project: uses project CRS (evidence: `geo_dip.py`)
- Styled map layer → QGIS project: adds to project (evidence: `geo_dip.py`)
