Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[processing] Fix use of "Save log to file" algorithm in models
run from the qgis_process standalone tool
- Loading branch information
1 parent
d26c041
commit 6daeebc
Showing
3 changed files
with
157 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<!DOCTYPE model> | ||
<Option type="Map"> | ||
<Option name="children" type="Map"> | ||
<Option name="native:raisewarning_1" type="Map"> | ||
<Option name="active" value="true" type="bool"/> | ||
<Option name="alg_config"/> | ||
<Option name="alg_id" value="native:raisewarning" type="QString"/> | ||
<Option name="color" value="" type="QString"/> | ||
<Option name="comment" type="Map"> | ||
<Option name="color" value="" type="QString"/> | ||
<Option name="component_description" value="" type="QString"/> | ||
<Option name="component_height" value="60" type="double"/> | ||
<Option name="component_pos_x" value="467.5" type="double"/> | ||
<Option name="component_pos_y" value="48.5" type="double"/> | ||
<Option name="component_width" value="100" type="double"/> | ||
<Option name="outputs_collapsed" value="true" type="bool"/> | ||
<Option name="parameters_collapsed" value="true" type="bool"/> | ||
</Option> | ||
<Option name="component_description" value="Raise warning" type="QString"/> | ||
<Option name="component_height" value="30" type="double"/> | ||
<Option name="component_pos_x" value="267.5" type="double"/> | ||
<Option name="component_pos_y" value="93.5" type="double"/> | ||
<Option name="component_width" value="200" type="double"/> | ||
<Option name="dependencies"/> | ||
<Option name="id" value="native:raisewarning_1" type="QString"/> | ||
<Option name="outputs"/> | ||
<Option name="outputs_collapsed" value="true" type="bool"/> | ||
<Option name="parameters_collapsed" value="true" type="bool"/> | ||
<Option name="params" type="Map"> | ||
<Option name="CONDITION" type="List"> | ||
<Option type="Map"> | ||
<Option name="source" value="2" type="int"/> | ||
<Option name="static_value" value="" type="QString"/> | ||
</Option> | ||
</Option> | ||
<Option name="MESSAGE" type="List"> | ||
<Option type="Map"> | ||
<Option name="source" value="2" type="int"/> | ||
<Option name="static_value" value="Test logged message" type="QString"/> | ||
</Option> | ||
</Option> | ||
</Option> | ||
</Option> | ||
<Option name="native:savelog_1" type="Map"> | ||
<Option name="active" value="true" type="bool"/> | ||
<Option name="alg_config"/> | ||
<Option name="alg_id" value="native:savelog" type="QString"/> | ||
<Option name="color" value="" type="QString"/> | ||
<Option name="comment" type="Map"> | ||
<Option name="color" value="" type="QString"/> | ||
<Option name="component_description" value="" type="QString"/> | ||
<Option name="component_height" value="60" type="double"/> | ||
<Option name="component_pos_x" value="571.5" type="double"/> | ||
<Option name="component_pos_y" value="139" type="double"/> | ||
<Option name="component_width" value="100" type="double"/> | ||
<Option name="outputs_collapsed" value="true" type="bool"/> | ||
<Option name="parameters_collapsed" value="true" type="bool"/> | ||
</Option> | ||
<Option name="component_description" value="Save log to file" type="QString"/> | ||
<Option name="component_height" value="30" type="double"/> | ||
<Option name="component_pos_x" value="371.5" type="double"/> | ||
<Option name="component_pos_y" value="184" type="double"/> | ||
<Option name="component_width" value="200" type="double"/> | ||
<Option name="dependencies" type="List"> | ||
<Option type="Map"> | ||
<Option name="child_id" value="native:raisewarning_1" type="QString"/> | ||
<Option name="conditional_branch" value="" type="QString"/> | ||
</Option> | ||
</Option> | ||
<Option name="id" value="native:savelog_1" type="QString"/> | ||
<Option name="outputs"/> | ||
<Option name="outputs_collapsed" value="true" type="bool"/> | ||
<Option name="parameters_collapsed" value="true" type="bool"/> | ||
<Option name="params" type="Map"> | ||
<Option name="OUTPUT" type="List"> | ||
<Option type="Map"> | ||
<Option name="parameter_name" value="logfile" type="QString"/> | ||
<Option name="source" value="0" type="int"/> | ||
</Option> | ||
</Option> | ||
<Option name="USE_HTML" type="List"> | ||
<Option type="Map"> | ||
<Option name="source" value="2" type="int"/> | ||
<Option name="static_value" value="false" type="bool"/> | ||
</Option> | ||
</Option> | ||
</Option> | ||
</Option> | ||
</Option> | ||
<Option name="designerParameterValues" type="Map"> | ||
<Option name="logfile" value="/tmp/test.log" type="QString"/> | ||
</Option> | ||
<Option name="groupBoxes"/> | ||
<Option name="help"/> | ||
<Option name="modelVariables"/> | ||
<Option name="model_group" value="" type="QString"/> | ||
<Option name="model_name" value="Test logger" type="QString"/> | ||
<Option name="parameterDefinitions" type="Map"> | ||
<Option name="logfile" type="Map"> | ||
<Option name="default" value="" type="QString"/> | ||
<Option name="defaultGui" type="invalid"/> | ||
<Option name="description" value="log_file" type="QString"/> | ||
<Option name="flags" value="0" type="int"/> | ||
<Option name="help" value="" type="QString"/> | ||
<Option name="metadata"/> | ||
<Option name="multiline" value="false" type="bool"/> | ||
<Option name="name" value="logfile" type="QString"/> | ||
<Option name="parameter_type" value="string" type="QString"/> | ||
</Option> | ||
</Option> | ||
<Option name="parameterOrder"/> | ||
<Option name="parameters" type="Map"> | ||
<Option name="logfile" type="Map"> | ||
<Option name="color" value="" type="QString"/> | ||
<Option name="comment" type="Map"> | ||
<Option name="color" value="" type="QString"/> | ||
<Option name="component_description" value="" type="QString"/> | ||
<Option name="component_height" value="60" type="double"/> | ||
<Option name="component_pos_x" value="408" type="double"/> | ||
<Option name="component_pos_y" value="226" type="double"/> | ||
<Option name="component_width" value="100" type="double"/> | ||
<Option name="outputs_collapsed" value="true" type="bool"/> | ||
<Option name="parameters_collapsed" value="true" type="bool"/> | ||
</Option> | ||
<Option name="component_description" value="logfile" type="QString"/> | ||
<Option name="component_height" value="30" type="double"/> | ||
<Option name="component_pos_x" value="146" type="double"/> | ||
<Option name="component_pos_y" value="282" type="double"/> | ||
<Option name="component_width" value="200" type="double"/> | ||
<Option name="name" value="logfile" type="QString"/> | ||
<Option name="outputs_collapsed" value="true" type="bool"/> | ||
<Option name="parameters_collapsed" value="true" type="bool"/> | ||
</Option> | ||
</Option> | ||
</Option> |