stratified_packager.processing.report
CSV reporting: the run-level report and the per-zip reports (SPEC §9).
CSV is data, not UI: UTF-8 without BOM, header row, untranslated column names and
status tokens (SPEC §20). This module needs no qgis import — rows arrive as plain
data from the algorithm thread.
Module Attributes
Pseudo-stratum of the orphan-accounting rows (SPEC §9.1). |
Functions
|
Write one per-zip |
Classes
|
One row of the run-level report (SPEC §9.1). |
|
One row of a per-zip |
- class stratified_packager.processing.report.RunReportRow(stratum, layer, feature_count=None, status='ok', detail='')[source]
One row of the run-level report (SPEC §9.1).
- __init__(stratum, layer, feature_count=None, status='ok', detail='')
- class stratified_packager.processing.report.ZipReportRow(stratum, layer_name, gpkg_table='', path_in_zip='', layer_type='', geometry_type='', feature_count=None, field_count=None, excluded_fields='', matching_method='', match_detail='', source_crs='', status='ok', detail='')[source]
One row of a per-zip
report.csv(SPEC §9.2).- Parameters:
- __init__(stratum, layer_name, gpkg_table='', path_in_zip='', layer_type='', geometry_type='', feature_count=None, field_count=None, excluded_fields='', matching_method='', match_detail='', source_crs='', status='ok', detail='')
- stratified_packager.processing.report._write(path, header, rows)[source]
Write one CSV (UTF-8, no BOM, header row).
- stratified_packager.processing.report.write_zip_report(path, rows, /)[source]
Write one per-zip
report.csv(SPEC §9.2).- Parameters:
path (
Path) – Destination CSV path (staged into the zip’s build area).rows (
Iterable[ZipReportRow]) – One row per (member stratum x included layer).
- Return type:
- Returns:
path.
- stratified_packager.processing.report.UNMATCHED_KEY: Final = '<unmatched>'
Pseudo-stratum of the orphan-accounting rows (SPEC §9.1).