How azista-image-processing/clickhouse_data_downloader works
This QGIS plugin lets users connect to ClickHouse, choose a table and spatial columns, build a query, download results as CSV, and add them to the map. The excerpts show connection and schema discovery, filter SQL generation, background export, and layer addition. Some dialog wiring and the handoff from the query editor to the download task occur in unsampled lines, so those links are marked unverified.
Main entry points: plugin.py Downloader dialog · __init__.py Plugin factory
Components 11
Plugin entry
- Plugin factory
__init__.py - Plugin action
plugin.py
Query and connection
- Downloader dialog
plugin.py - Filter builder
plugin.py - Schema discovery
plugin.py
Export and mapping
- Background CSV export
plugin.py - CSV file
- QGIS map layer
plugin.py
Other components
- QGIS user
- ClickHouse
- QGIS application
Connections 13
- QGIS user → Plugin action: opens plugin
plugin.py - Plugin factory → Plugin action: loads
__init__.py - Plugin action → Downloader dialog: opens dialog
plugin.py - Downloader dialog → ClickHouse: connects to
plugin.py - Downloader dialog → Schema discovery: requests schema
plugin.py - Schema discovery → ClickHouse: queries metadata
plugin.py - Downloader dialog → Filter builder: uses filters
plugin.py - Filter builder → Downloader dialog: provides SQL
plugin.py - Downloader dialog → Background CSV export: starts download
plugin.py - Background CSV export → ClickHouse: streams query results
plugin.py - Background CSV export → CSV file: writes rows
plugin.py - Downloader dialog → QGIS map layer: adds result
plugin.py - QGIS map layer → QGIS application: creates map layer
plugin.py