stratified_packager.processing.params
Parameter declarations, typed contracts and the shared default resolver (SPEC §3/§5).
One table (PARAM_SPECS) drives everything: parameter declaration (with
defaultValue computed through the resolution chain at declaration time, so the
Processing dialog shows the effective value), the project-variable naming rule
(input X → stratified_packager_<x_lower>), and the runtime fallback for omitted
parameters. Resolution precedence per input: explicit input > project variable >
plugin setting > builtin default.
Enum-valued parameters use static string tokens (usesStaticStrings), so the same
tokens flow through qgis_process arguments, project variables and plugin settings
(SPEC §3 persists tokens, never indices).
Module Attributes
Prefix of every project/layer variable owned by this plugin. |
|
The §4 layer variables in GUI display order — the single source the field tables, the all-layers dialog and the algorithm help build from (a new variable auto-appears in all). |
|
Builtin defaults of the §4 layer variables, keyed by full variable name (a derived view of |
|
The named |
|
Valid DE-9IM intersection-matrix patterns (SPEC §4): nine characters of |
|
The single-bit |
|
Every style-category token in canonical (bit) order. |
|
Builtin |
|
Builtin |
|
Every input of SPEC §3, keyed by id, in declaration order. |
Functions
|
Declare the SPEC §3 outputs on algorithm. |
|
Declare every SPEC §3 input on algorithm, defaults pre-resolved (SPEC §5). |
|
Return the layers an empty |
|
Report whether an input was omitted (absent or |
|
Report whether layer is marked |
List the data-provider keys the |
|
|
Resolve the effective default of one input: project variable > setting > builtin. |
|
OR the selected style-category tokens into a flag set (SPEC §8.1). |
|
Return an input's translated user-facing label. |
|
Map an input id to its project variable name (SPEC §3 naming rule). |
Classes
|
Reads single inputs through the §5 chain: explicit > variable > setting > builtin. |
|
One §4 layer variable: the single source of its name, default and user-facing text. |
|
|
|
|
|
Declaration/resolution facts of one input (one row of the SPEC §3 table). |
|
|
Typed parameter map for Python callers of the algorithm (SPEC §3). |
|
Typed result map returned by the algorithm (SPEC §3 declared outputs). |
|
|
One selectable QML style category, mirroring a Copy Style menu entry (SPEC §8.1). |
|
|
- class stratified_packager.processing.params.InputReader(algorithm, parameters, context, project, settings)[source]
Reads single inputs through the §5 chain: explicit > variable > setting > builtin.
- Parameters:
algorithm (
StratifiedPackagerAlgorithm)context (
QgsProcessingContext)project (
QgsProject)settings (
StratifiedPackagerSettings)
- __init__(algorithm, parameters, context, project, settings)[source]
Initialize the reader.
- Parameters:
algorithm (
StratifiedPackagerAlgorithm) – The running algorithm (parameter extraction + translation).context (
QgsProcessingContext) – The processing context.project (
QgsProject) – The run’s project.settings (
StratifiedPackagerSettings) – The plugin settings.
- fallback(name)[source]
Resolve an omitted input through variable > setting > builtin (strict).
- Parameters:
name (
str) – The parameter id.- Return type:
- Returns:
The resolved default.
- Raises:
QgsProcessingException – On unusable stored values.
- class stratified_packager.processing.params.LayerVarSpec(name, default, label, description, vector_only=False, virtual_only=False)[source]
One §4 layer variable: the single source of its name, default and user-facing text.
- Parameters:
- __init__(name, default, label, description, vector_only=False, virtual_only=False)
- description: str
Help sentence following the variable name in the algorithm help (source English, HTML-fragment grade; translated at use in the
StratifiedPackagerAlgorithmcontext).
- label: str
Short editor label (source English; translated at use in the
StratifiedPackagerWidgetscontext).
- property suffix: str
The bare variable suffix — the GUI field tables’ key.
- Returns:
namewithout thestratified_packager_prefix.
- class stratified_packager.processing.params.MatchingMethod(*values)[source]
stratified_packager_matching_methodtokens (SPEC §4).- ATTRIBUTE = 'attribute'
- AUTO = 'auto'
- PROJECT_ONLY = 'project_only'
Not packaged at all: the layer is never read, and rides only in the embedded project with its source re-pointed at each stratum’s gpkg (§4/§13). Resolved at classification time, so it never reaches
LayerMatchPlan.
- SPATIAL = 'spatial'
- WHOLE_EXPORT = 'whole_export'
- class stratified_packager.processing.params.OverwriteMode(*values)[source]
OVERWRITE_MODEtokens (SPEC §3/§10).- ERROR = 'error'
- OVERWRITE = 'overwrite'
- SKIP_EXISTING = 'skip-existing'
- class stratified_packager.processing.params.ParamSpec(name, kind, builtin, label='', setting=None, has_variable=True)[source]
Declaration/resolution facts of one input (one row of the SPEC §3 table).
- Parameters:
- __init__(name, kind, builtin, label='', setting=None, has_variable=True)
- has_variable: bool = True
Whether the input has a project variable (every non-multiple-layers input).
- label: str = ''
User-facing text of the input (source English, authored with
QT_TRANSLATE_NOOP()): the Processing-dialog description, reused verbatim as the Options-page label and the plugin-setting description, so the three surfaces cannot drift. Translated at use in theStratifiedPackagerAlgorithmcontext.
- setting: str | None = None
Attribute name on
StratifiedPackagerSettings(only the ✓ rows of SPEC §3).
- class stratified_packager.processing.params.ProjectInclusion(*values)[source]
PROJECT_INCLUSIONtokens (SPEC §3/§13).- GPKG = 'gpkg'
- NONE = 'none'
- QGZ = 'qgz'
- class stratified_packager.processing.params.StratifiedPackagerAlgorithmInputDict[source]
Typed parameter map for Python callers of the algorithm (SPEC §3).
- LAYERS: Sequence[QgsMapLayer | str]
- STRATIFICATION_LAYER: QgsVectorLayer | str
- class stratified_packager.processing.params.StratifiedPackagerAlgorithmOutputDict[source]
Typed result map returned by the algorithm (SPEC §3 declared outputs).
- class stratified_packager.processing.params.StyleCategoryOption(token, flag, source_label)[source]
One selectable QML style category, mirroring a Copy Style menu entry (SPEC §8.1).
- Parameters:
token (
str)flag (
StyleCategory)source_label (
str)
- __init__(token, flag, source_label)
- Parameters:
token (
str)flag (
StyleCategory)source_label (
str)
- flag: qgis.core.QgsMapLayer.StyleCategory
The
StyleCategoryflag this token maps to.
- property label: str
The user-facing label, translated on access.
Resolved lazily, not at table-construction time: this module is imported from
settingswhileclassFactoryruns, beforeStratifiedPackagerinstalls the plugin translator, so an eager translation would freeze every label to source English.- Returns:
source_labeltranslated in the algorithm context.
- source_label: str
User-facing label in source English (matches the layer-tree Copy Style menu), authored with
QT_TRANSLATE_NOOP().
- class stratified_packager.processing.params.WarmStartMode(*values)[source]
WARM_START_MODEtokens (SPEC §3/§11).- OFF = 'off'
- UPDATE = 'update'
- USE = 'use'
- class stratified_packager.processing.params._Kind(*values)[source]
Coercion kind of a parameter’s variable/setting values.
- BOOL = 'bool'
- INCLUSION = 'inclusion'
- INT = 'int'
- LAYER_LIST = 'layer_list'
- OVERWRITE = 'overwrite'
- PROVIDER_LIST = 'provider_list'
- STRING = 'string'
- STYLE_CATEGORIES = 'style_categories'
- WARM = 'warm'
- stratified_packager.processing.params._coerce(kind, raw)[source]
Coerce a project-variable (or stored-setting) value to its parameter type.
- Parameters:
- Return type:
- Returns:
The coerced value.
- Raises:
ValueError – If raw cannot represent the kind (bad boolean/integer/token).
- stratified_packager.processing.params._coerce_provider_list(raw)[source]
Interpret a stored value as a list of data-provider keys.
Accepts a comma-separated string (the variable/setting form), a list/tuple (the builtin/explicit form) or a bare key; blanks are dropped and the result is returned sorted without duplicates.
- Parameters:
raw (
object) – The raw stored value.- Return type:
- Returns:
The validated provider keys, sorted.
- Raises:
ValueError – If any key is not a registered data provider.
- stratified_packager.processing.params._coerce_style_categories(raw)[source]
Interpret a stored value as a list of style-category tokens.
Accepts a comma-separated string (the variable/setting form), a list/tuple (the builtin/explicit form) or a bare token; blanks are dropped and the result is returned in canonical order without duplicates.
- Parameters:
raw (
object) – The raw stored value.- Return type:
- Returns:
The validated tokens in canonical order.
- Raises:
ValueError – If any token is not a known style category.
- stratified_packager.processing.params._static_enum(name, description, enum_type, default_token)[source]
Build a static-strings enum parameter whose options are the SPEC tokens.
- stratified_packager.processing.params._static_multi_enum(name, description, default_value, options)[source]
Build an optional multi-select static-strings enum over options.
The parameter is optional so a fully-unchecked selection is accepted; what an empty selection means is the resolver’s business (e.g. all categories for
STYLE_CATEGORIES, stage nothing implicitly forSTAGE_PROVIDERS).
- stratified_packager.processing.params.declare_outputs(algorithm)[source]
Declare the SPEC §3 outputs on algorithm.
- Parameters:
algorithm (
QgsProcessingAlgorithm) – The algorithm being initialized.- Raises:
ValueError – If QGIS rejects an output declaration.
- Return type:
- stratified_packager.processing.params.declare_parameters(algorithm, *, project=None, settings=None)[source]
Declare every SPEC §3 input on algorithm, defaults pre-resolved (SPEC §5).
- Parameters:
algorithm (QgsProcessingAlgorithm) – The algorithm being initialized.
project (QgsProject | None) – Project consulted for variable-tier defaults (omit headless-safe).
settings (StratifiedPackagerSettings | None) – Plugin settings consulted for setting-tier defaults.
- Return type:
None
- stratified_packager.processing.params.eligible_layer_ids(project, /)[source]
Return the layers an empty
LAYERSinput resolves to (SPEC §4/§5).Eligible = every project layer except plugin layers, minus layers whose
stratified_packager_excludevariable is true. An unset value counts as included (the default: participate). A value that cannot be coerced to bool raises, like every other run-start config in the strict regime (cf.resolve_default()), so the run aborts loudly instead of guessing inclusion.- Parameters:
project (
QgsProject) – The project to scan.- Return type:
- Returns:
Layer ids in layer-tree iteration order.
- Raises:
ValueError – If a layer’s
excludevalue cannot be coerced to bool; the message names the layer and the offending value.
- stratified_packager.processing.params.is_omitted(parameters, name, /)[source]
Report whether an input was omitted (absent or
None) by the caller.The GUI supplies every input, so this is the headless/model path detector that gates the runtime fallback of SPEC §5.
- stratified_packager.processing.params.is_project_only(layer, /)[source]
Report whether layer is marked
matching_method = project_only(SPEC §4).Answered by string equality rather than by parsing the variable into a
MatchingMethod: the token decides classification (§8.1), which runs long beforeresolve_layer_methods()— the one strict validator of this variable. Parsing here too would either duplicate that validation or move it, and an unrecognized token must keep failing there, with its own message, rather than being silently read as “not project-only”.- Parameters:
layer (
QgsMapLayer) – Any project layer.- Return type:
- Returns:
Whether the layer rides only in the embedded project, re-pointed (§13).
- stratified_packager.processing.params.provider_keys()[source]
List the data-provider keys the
STAGE_PROVIDERSmulti-select offers.- Return type:
- Returns:
The provider registry’s keys, sorted.
- Raises:
RuntimeError – If the provider registry is unavailable (QGIS not initialized).
- stratified_packager.processing.params.resolve_default(name, *, project=None, settings=None, strict=True)[source]
Resolve the effective default of one input: project variable > setting > builtin.
This is the shared tail of the SPEC §5 chain — explicit inputs are handled by the caller before consulting it. With
strict=False(declaration-time prefill) an unusable stored value silently falls through to the next tier; withstrict=True(runtime fallback) it raises so the run aborts loudly instead of guessing.- Parameters:
name (str) – The parameter id.
project (QgsProject | None) – Project whose
stratified_packager_<x>variable to consult.settings (StratifiedPackagerSettings | None) – Plugin settings to consult (the ✓ rows of SPEC §3).
strict (bool) – Whether unusable stored values raise instead of falling through.
- Return type:
object
- Returns:
The resolved default (possibly
Nonefor layer-ish inputs).- Raises:
ValueError – If
strictand a stored value cannot be coerced; the message names the parameter and the offending tier.
- stratified_packager.processing.params.style_categories_flags(tokens, /)[source]
OR the selected style-category tokens into a flag set (SPEC §8.1).
An empty (or all-unknown) selection yields
AllStyleCategories— the documented select-none means select-all rule;INCLUDE_STYLES=Falseis the real off switch. Unknown tokens are ignored here (the resolver validates them upstream).- Parameters:
- Return type:
- Returns:
The OR of the matching flags, or
AllStyleCategorieswhen none match.
- stratified_packager.processing.params.translated_label(name, /)[source]
Return an input’s translated user-facing label.
- Parameters:
name (
str) – The parameter id.- Return type:
- Returns:
The
ParamSpec.labeltranslated in the algorithm context.
- stratified_packager.processing.params.variable_name(param, /)[source]
Map an input id to its project variable name (SPEC §3 naming rule).
- stratified_packager.processing.params.DE9IM_PATTERN: Final[re.Pattern[str]] = re.compile('^[TF012*]{9}$', re.IGNORECASE)
Valid DE-9IM intersection-matrix patterns (SPEC §4): nine characters of
[TF012*]. The T/F characters are case-insensitive (lowercaset/faccepted; normalized to uppercase before the GEOSrelate()call, which expects uppercase).
- stratified_packager.processing.params.DEFAULT_STAGE_PROVIDERS: Final[list[str]] = []
Builtin
STAGE_PROVIDERSdefault: no provider is staged implicitly (SPEC §3/§8.2).
- stratified_packager.processing.params.DEFAULT_STYLE_CATEGORIES: Final[list[str]] = ['layer_configuration', 'symbology', 'symbology_3d', 'labeling', 'fields', 'forms', 'actions', 'map_tips', 'diagrams', 'attribute_table', 'rendering', 'custom_properties', 'geometry_options', 'relations', 'temporal', 'legend', 'elevation', 'notes']
Builtin
STYLE_CATEGORIESdefault: every category (SPEC §3).
- stratified_packager.processing.params.LAYER_VARIABLE_DEFAULTS: Final[dict[str, str]] = {'stratified_packager_exclude': 'false', 'stratified_packager_excluded_fields': '[]', 'stratified_packager_layer_name': '', 'stratified_packager_matching_method': 'auto', 'stratified_packager_materialize_virtual_layer': 'false', 'stratified_packager_relation_path': '', 'stratified_packager_spatial_predicate': 'auto', 'stratified_packager_stage': 'auto', 'stratified_packager_warm_marked': 'false'}
Builtin defaults of the §4 layer variables, keyed by full variable name (a derived view of
LAYER_VAR_SPECS).
- stratified_packager.processing.params.LAYER_VAR_SPECS: Final[tuple[LayerVarSpec, ...]] = (LayerVarSpec(name='stratified_packager_exclude', default='false', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, description=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, vector_only=False, virtual_only=False), LayerVarSpec(name='stratified_packager_layer_name', default='', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, description=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, vector_only=False, virtual_only=False), LayerVarSpec(name='stratified_packager_matching_method', default='auto', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, description=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, vector_only=True, virtual_only=False), LayerVarSpec(name='stratified_packager_spatial_predicate', default='auto', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, description=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, vector_only=True, virtual_only=False), LayerVarSpec(name='stratified_packager_excluded_fields', default='[]', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, description=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, vector_only=True, virtual_only=False), LayerVarSpec(name='stratified_packager_stage', default='auto', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, description=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, vector_only=True, virtual_only=False), LayerVarSpec(name='stratified_packager_warm_marked', default='false', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, description=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, vector_only=True, virtual_only=False), LayerVarSpec(name='stratified_packager_materialize_virtual_layer', default='false', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, description=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, vector_only=True, virtual_only=True), LayerVarSpec(name='stratified_packager_relation_path', default='', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, description=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, vector_only=True, virtual_only=False))
The §4 layer variables in GUI display order — the single source the field tables, the all-layers dialog and the algorithm help build from (a new variable auto-appears in all).
- stratified_packager.processing.params.NAMED_SPATIAL_PREDICATES: Final[tuple[str, ...]] = ('intersects', 'contains', 'within', 'overlaps', 'crosses', 'touches')
The named
spatial_predicatetokens, in display order, each mapping 1:1 onto a QGIS expression function (SPEC §4). The single source of truth shared by the matching engine and the defaults GUI.
- stratified_packager.processing.params.PARAM_SPECS: Final[dict[str, ParamSpec]] = {'COMPRESSION_LEVEL': ParamSpec(name='COMPRESSION_LEVEL', kind=<_Kind.INT: 'int'>, builtin=6, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='compression_level', has_variable=True), 'DEDUPLICATE_SHARED_SOURCES': ParamSpec(name='DEDUPLICATE_SHARED_SOURCES', kind=<_Kind.BOOL: 'bool'>, builtin=True, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='deduplicate_shared_sources', has_variable=True), 'DRY_RUN': ParamSpec(name='DRY_RUN', kind=<_Kind.BOOL: 'bool'>, builtin=False, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting=None, has_variable=True), 'EXPORT_FULL_PACKAGE': ParamSpec(name='EXPORT_FULL_PACKAGE', kind=<_Kind.BOOL: 'bool'>, builtin=False, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='export_full_package', has_variable=True), 'EXTRA_DIR': ParamSpec(name='EXTRA_DIR', kind=<_Kind.STRING: 'string'>, builtin=None, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting=None, has_variable=True), 'FULL_PACKAGE_PATH': ParamSpec(name='FULL_PACKAGE_PATH', kind=<_Kind.STRING: 'string'>, builtin='', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting=None, has_variable=True), 'GENERATE_REPORT': ParamSpec(name='GENERATE_REPORT', kind=<_Kind.BOOL: 'bool'>, builtin=True, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='generate_report', has_variable=True), 'GPKG_PATH_EXPRESSION': ParamSpec(name='GPKG_PATH_EXPRESSION', kind=<_Kind.STRING: 'string'>, builtin='', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='gpkg_path_expression', has_variable=True), 'INCLUDE_METADATA': ParamSpec(name='INCLUDE_METADATA', kind=<_Kind.BOOL: 'bool'>, builtin=True, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='include_metadata', has_variable=True), 'INCLUDE_STYLES': ParamSpec(name='INCLUDE_STYLES', kind=<_Kind.BOOL: 'bool'>, builtin=True, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='include_styles', has_variable=True), 'KEEP_EMPTY_LAYERS': ParamSpec(name='KEEP_EMPTY_LAYERS', kind=<_Kind.BOOL: 'bool'>, builtin=True, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='keep_empty_layers', has_variable=True), 'LAYERS': ParamSpec(name='LAYERS', kind=<_Kind.LAYER_LIST: 'layer_list'>, builtin=None, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting=None, has_variable=False), 'OUTPUT_DIRECTORY': ParamSpec(name='OUTPUT_DIRECTORY', kind=<_Kind.STRING: 'string'>, builtin=None, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting=None, has_variable=True), 'OVERWRITE_MODE': ParamSpec(name='OVERWRITE_MODE', kind=<_Kind.OVERWRITE: 'overwrite'>, builtin='overwrite', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='overwrite_mode', has_variable=True), 'PROJECT_INCLUSION': ParamSpec(name='PROJECT_INCLUSION', kind=<_Kind.INCLUSION: 'inclusion'>, builtin='none', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='project_inclusion', has_variable=True), 'STAGE_PROVIDERS': ParamSpec(name='STAGE_PROVIDERS', kind=<_Kind.PROVIDER_LIST: 'provider_list'>, builtin=[], label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='stage_providers', has_variable=True), 'STRATA_FROM_SELECTION': ParamSpec(name='STRATA_FROM_SELECTION', kind=<_Kind.BOOL: 'bool'>, builtin=False, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting=None, has_variable=True), 'STRATIFICATION_LAYER': ParamSpec(name='STRATIFICATION_LAYER', kind=<_Kind.STRING: 'string'>, builtin=None, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting=None, has_variable=True), 'STRATUM_NAME_EXPRESSION': ParamSpec(name='STRATUM_NAME_EXPRESSION', kind=<_Kind.STRING: 'string'>, builtin='', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting=None, has_variable=True), 'STYLE_CATEGORIES': ParamSpec(name='STYLE_CATEGORIES', kind=<_Kind.STYLE_CATEGORIES: 'style_categories'>, builtin=['layer_configuration', 'symbology', 'symbology_3d', 'labeling', 'fields', 'forms', 'actions', 'map_tips', 'diagrams', 'attribute_table', 'rendering', 'custom_properties', 'geometry_options', 'relations', 'temporal', 'legend', 'elevation', 'notes'], label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='style_categories', has_variable=True), 'USE_TEMP_FOLDER': ParamSpec(name='USE_TEMP_FOLDER', kind=<_Kind.BOOL: 'bool'>, builtin=True, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='use_temp_folder', has_variable=True), 'WARM_START_DIR': ParamSpec(name='WARM_START_DIR', kind=<_Kind.STRING: 'string'>, builtin=None, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting=None, has_variable=True), 'WARM_START_MODE': ParamSpec(name='WARM_START_MODE', kind=<_Kind.WARM: 'warm'>, builtin='off', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='warm_start_mode', has_variable=True), 'WRITE_CHECKSUMS': ParamSpec(name='WRITE_CHECKSUMS', kind=<_Kind.BOOL: 'bool'>, builtin=False, label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='write_checksums', has_variable=True), 'ZIP_PATH_EXPRESSION': ParamSpec(name='ZIP_PATH_EXPRESSION', kind=<_Kind.STRING: 'string'>, builtin='', label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP, setting='zip_path_expression', has_variable=True)}
Every input of SPEC §3, keyed by id, in declaration order.
- stratified_packager.processing.params.STYLE_CATEGORY_OPTIONS: Final[tuple[StyleCategoryOption, ...]] = (StyleCategoryOption(token='layer_configuration', flag=qgis.core.QgsMapLayer.StyleCategory.LayerConfiguration, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='symbology', flag=qgis.core.QgsMapLayer.StyleCategory.Symbology, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='symbology_3d', flag=qgis.core.QgsMapLayer.StyleCategory.Symbology3D, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='labeling', flag=qgis.core.QgsMapLayer.StyleCategory.Labeling, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='fields', flag=qgis.core.QgsMapLayer.StyleCategory.Fields, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='forms', flag=qgis.core.QgsMapLayer.StyleCategory.Forms, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='actions', flag=qgis.core.QgsMapLayer.StyleCategory.Actions, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='map_tips', flag=qgis.core.QgsMapLayer.StyleCategory.MapTips, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='diagrams', flag=qgis.core.QgsMapLayer.StyleCategory.Diagrams, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='attribute_table', flag=qgis.core.QgsMapLayer.StyleCategory.AttributeTable, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='rendering', flag=qgis.core.QgsMapLayer.StyleCategory.Rendering, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='custom_properties', flag=qgis.core.QgsMapLayer.StyleCategory.CustomProperties, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='geometry_options', flag=qgis.core.QgsMapLayer.StyleCategory.GeometryOptions, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='relations', flag=qgis.core.QgsMapLayer.StyleCategory.Relations, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='temporal', flag=qgis.core.QgsMapLayer.StyleCategory.Temporal, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='legend', flag=qgis.core.QgsMapLayer.StyleCategory.Legend, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='elevation', flag=qgis.core.QgsMapLayer.StyleCategory.Elevation, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP), StyleCategoryOption(token='notes', flag=qgis.core.QgsMapLayer.StyleCategory.Notes, source_label=qgis.PyQt.QtCore.QT_TRANSLATE_NOOP))
The single-bit
StyleCategoryflags, in QGIS bit order, as offered by the layer-tree Copy Style menu (theAll*combinations are excluded).
- stratified_packager.processing.params.STYLE_CATEGORY_TOKENS: Final[tuple[str, ...]] = ('layer_configuration', 'symbology', 'symbology_3d', 'labeling', 'fields', 'forms', 'actions', 'map_tips', 'diagrams', 'attribute_table', 'rendering', 'custom_properties', 'geometry_options', 'relations', 'temporal', 'legend', 'elevation', 'notes')
Every style-category token in canonical (bit) order.
- stratified_packager.processing.params.VARIABLE_PREFIX: Final = 'stratified_packager_'
Prefix of every project/layer variable owned by this plugin.
- stratified_packager.processing.params._ALG: Final = 'StratifiedPackagerAlgorithm'
Translation context of every algorithm-facing string (labels, help, messages). Used as the runtime
translate()context; extraction sites (QT_TRANSLATE_NOOP()) MUST spell the literal instead, becausepylupdatestatically parses the context argument and silently drops a variable one.