# subhankar-hub/hake-gis architecture

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

- Interactive diagram: https://gitdiagram.com/subhankar-hub/hake-gis
- Repository: https://github.com/subhankar-hub/hake-gis

## Overview

QGIS is a desktop geographic information system with a companion headless map server. Its main user workflow is to connect spatial data, organize it as project layers, visualize and edit it, and use geospatial analysis to produce results. The README also highlights cartography and layouts, extensibility through plugins and APIs, and standards-based server services. The map preserves these product branches while keeping the principal data/project/render workflow visible. Many subsystems are represented from README capabilities and the file tree; their internal call paths were not sampled.

Main entry points: [`src/app`](https://github.com/subhankar-hub/hake-gis/tree/master/src/app) (QGIS desktop), [`src/analysis`](https://github.com/subhankar-hub/hake-gis/tree/master/src/analysis) (Processing framework), [`src/server`](https://github.com/subhankar-hub/hake-gis/tree/master/src/server) (Server request handling), [`src/core/project/qgsproject.h`](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/project/qgsproject.h) (Project model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Spatial data"]
  node_data_model["Data abstraction"]
  node_providers["Data providers"]
  node_geometry["Geometry engine"]
  node_crs["CRS transforms"]
end

subgraph group_maps["Maps and projects"]
  node_desktop["QGIS desktop"]
  node_project["Project model<br/>[qgsproject.h]"]
  node_layers["Map layers<br/>[qgsmaplayer.h]"]
  node_render["Map rendering"]
  node_symbology["Symbology and labels"]
  node_layouts["Layouts and reports"]
  node_outputs["Map export"]
  node_readwrite["Read/write context"]
end

subgraph group_analysis["Geospatial analysis"]
  node_processing["Processing framework"]
  node_algorithms["Analysis algorithms"]
  node_dbmanager["Database tools"]
end

subgraph group_extend["Customization"]
  node_plugins["Plugin manager"]
  node_api["Python and C++ APIs"]
  node_settings["Application settings<br/>[qgssettings.h]"]
  node_qgis_types["QGIS core types<br/>[qgis.h]"]
  node_bindings["Python bindings<br/>[qgis_sip.h]"]
  node_logging["Logging<br/>[qgslogger.h]"]
  node_messages["Message log<br/>[qgsmessagelog.h]"]
end

subgraph group_server["QGIS Server"]
  node_server_entry["Server request handling"]
  node_server_services["OGC services"]
  node_server_cache[("Server cache")]
end

node_user(("GIS user"))
node_external_client(("Web client"))

node_user -->|"uses"| node_desktop
node_desktop -->|"connects data"| node_providers
node_providers -->|"accesses through"| node_data_model
node_data_model -->|"provides layers"| node_layers
node_desktop -->|"organizes as"| node_project
node_project -->|"contains layers"| node_layers
node_layers -->|"reprojects"| node_crs
node_layers -.->|"edits geometry"| node_geometry
node_desktop -->|"renders maps"| node_render
node_render -->|"applies styling"| node_symbology
node_desktop -->|"creates layouts"| node_layouts
node_layouts -->|"exports maps"| node_outputs
node_desktop -->|"runs analysis"| node_processing
node_processing -->|"dispatches algorithms"| node_algorithms
node_processing -.->|"uses data"| node_providers
node_processing -->|"visualizes results"| node_render
node_desktop -->|"offers database tools"| node_dbmanager
node_desktop -->|"manages plugins"| node_plugins
node_plugins -->|"extends through"| node_api
node_desktop -->|"customizes"| node_settings
node_bindings -.->|"exposes bindings"| node_api
node_project -.->|"uses context"| node_readwrite
node_user -->|"sends requests"| node_server_entry
node_server_entry -.->|"routes requests"| node_server_services
node_server_entry -->|"shares code base"| node_project
node_server_entry -.->|"uses cache"| node_server_cache
node_server_services -->|"serves protocols"| node_external_client

click node_desktop "https://github.com/subhankar-hub/hake-gis/tree/master/src/app"
click node_data_model "https://github.com/subhankar-hub/hake-gis/tree/master/src/core"
click node_providers "https://github.com/subhankar-hub/hake-gis/tree/master/src/providers"
click node_geometry "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/geometry/qgsinternalgeometryengine.cpp"
click node_crs "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/proj/qgscoordinatetransformcontext.h"
click node_project "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/project/qgsproject.h"
click node_layers "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgsmaplayer.h"
click node_render "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/labeling/qgslabelingengine.cpp"
click node_symbology "https://github.com/subhankar-hub/hake-gis/tree/master/src/core/labeling"
click node_layouts "https://github.com/subhankar-hub/hake-gis/tree/master/src/app/layout"
click node_outputs "https://github.com/subhankar-hub/hake-gis/tree/master/src/core"
click node_processing "https://github.com/subhankar-hub/hake-gis/tree/master/src/analysis"
click node_algorithms "https://github.com/subhankar-hub/hake-gis/tree/master/src/analysis/processing"
click node_dbmanager "https://github.com/subhankar-hub/hake-gis/tree/master/python/plugins/db_manager_community"
click node_plugins "https://github.com/subhankar-hub/hake-gis/blob/master/src/app/pluginmanager/qgspluginmanager.cpp"
click node_api "https://github.com/subhankar-hub/hake-gis/tree/master/src"
click node_settings "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/settings/qgssettings.h"
click node_qgis_types "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgis.h"
click node_bindings "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgis_sip.h"
click node_logging "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgslogger.h"
click node_messages "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgsmessagelog.h"
click node_readwrite "https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgsreadwritecontext.h"
click node_server_entry "https://github.com/subhankar-hub/hake-gis/tree/master/src/server"
click node_server_services "https://github.com/subhankar-hub/hake-gis/tree/master/src/server/services"
click node_server_cache "https://github.com/subhankar-hub/hake-gis/blob/master/src/server/qgsservercachemanager.cpp"

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_data_model,node_providers,node_geometry,node_crs,node_user,node_external_client toneBlue
class node_desktop,node_project,node_layers,node_render,node_symbology,node_layouts,node_outputs,node_readwrite toneAmber
class node_processing,node_algorithms,node_dbmanager toneMint
class node_plugins,node_api,node_settings,node_qgis_types,node_bindings,node_logging,node_messages toneRose
class node_server_entry,node_server_services,node_server_cache toneIndigo
```

## Components

### Spatial data

- [Data abstraction](https://github.com/subhankar-hub/hake-gis/tree/master/src/core): `src/core`
- [Data providers](https://github.com/subhankar-hub/hake-gis/tree/master/src/providers): `src/providers`
- [Geometry engine](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/geometry/qgsinternalgeometryengine.cpp): `src/core/geometry/qgsinternalgeometryengine.cpp`
- [CRS transforms](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/proj/qgscoordinatetransformcontext.h): `src/core/proj/qgscoordinatetransformcontext.h`

### Maps and projects

- [QGIS desktop](https://github.com/subhankar-hub/hake-gis/tree/master/src/app): `src/app`
- [Project model](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/project/qgsproject.h): `src/core/project/qgsproject.h`
- [Map layers](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgsmaplayer.h): `src/core/qgsmaplayer.h`
- [Map rendering](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/labeling/qgslabelingengine.cpp): `src/core/labeling/qgslabelingengine.cpp`
- [Symbology and labels](https://github.com/subhankar-hub/hake-gis/tree/master/src/core/labeling): `src/core/labeling`
- [Layouts and reports](https://github.com/subhankar-hub/hake-gis/tree/master/src/app/layout): `src/app/layout`
- [Map export](https://github.com/subhankar-hub/hake-gis/tree/master/src/core): `src/core`
- [Read/write context](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgsreadwritecontext.h): `src/core/qgsreadwritecontext.h`

### Geospatial analysis

- [Processing framework](https://github.com/subhankar-hub/hake-gis/tree/master/src/analysis): `src/analysis`
- [Analysis algorithms](https://github.com/subhankar-hub/hake-gis/tree/master/src/analysis/processing): `src/analysis/processing`
- [Database tools](https://github.com/subhankar-hub/hake-gis/tree/master/python/plugins/db_manager_community): `python/plugins/db_manager_community`

### Customization

- [Plugin manager](https://github.com/subhankar-hub/hake-gis/blob/master/src/app/pluginmanager/qgspluginmanager.cpp): `src/app/pluginmanager/qgspluginmanager.cpp`
- [Python and C++ APIs](https://github.com/subhankar-hub/hake-gis/tree/master/src): `src`
- [Application settings](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/settings/qgssettings.h): `src/core/settings/qgssettings.h`
- [QGIS core types](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgis.h): `src/core/qgis.h`
- [Python bindings](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgis_sip.h): `src/core/qgis_sip.h`
- [Logging](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgslogger.h): `src/core/qgslogger.h`
- [Message log](https://github.com/subhankar-hub/hake-gis/blob/master/src/core/qgsmessagelog.h): `src/core/qgsmessagelog.h`

### QGIS Server

- [Server request handling](https://github.com/subhankar-hub/hake-gis/tree/master/src/server): `src/server`
- [OGC services](https://github.com/subhankar-hub/hake-gis/tree/master/src/server/services): `src/server/services`
- [Server cache](https://github.com/subhankar-hub/hake-gis/blob/master/src/server/qgsservercachemanager.cpp): `src/server/qgsservercachemanager.cpp`

### Other components

- **GIS user**
- **Web client**

## Connections

- GIS user → QGIS desktop: uses
- QGIS desktop → Data providers: connects data
- Data providers → Data abstraction: accesses through (evidence: `src/providers/postgres/qgspostgresprojectstorage.cpp`)
- Data abstraction → Map layers: provides layers (evidence: `src/core/labeling/qgslabelingengine.cpp`)
- QGIS desktop → Project model: organizes as
- Project model → Map layers: contains layers
- Map layers → CRS transforms: reprojects
- Map layers → Geometry engine: edits geometry
- QGIS desktop → Map rendering: renders maps
- Map rendering → Symbology and labels: applies styling (evidence: `src/core/labeling/qgslabelingengine.cpp`)
- QGIS desktop → Layouts and reports: creates layouts
- Layouts and reports → Map export: exports maps
- QGIS desktop → Processing framework: runs analysis
- Processing framework → Analysis algorithms: dispatches algorithms
- Processing framework → Data providers: uses data
- Processing framework → Map rendering: visualizes results
- QGIS desktop → Database tools: offers database tools
- QGIS desktop → Plugin manager: manages plugins (evidence: `src/app/pluginmanager/qgspluginmanager.cpp`)
- Plugin manager → Python and C++ APIs: extends through (evidence: `src/app/pluginmanager/qgspluginmanager.cpp`)
- QGIS desktop → Application settings: customizes (evidence: `src/app/pluginmanager/qgspluginmanager.cpp`)
- Python bindings → Python and C++ APIs: exposes bindings (evidence: `src/core/qgslogger.h`)
- Project model → Read/write context: uses context (evidence: `src/core/project/qgsproject.h`)
- GIS user → Server request handling: sends requests
- Server request handling → OGC services: routes requests
- Server request handling → Project model: shares code base
- Server request handling → Server cache: uses cache (evidence: `src/server/qgsservercachemanager.cpp`)
- OGC services → Web client: serves protocols
