Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add file output to ili2pg export from DB algorithm #12

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

webrian
Copy link

@webrian webrian commented Jan 2, 2023

Currently the ili2pg export from DB algorithm doesn't return anything. As long as the algorithm is run from the processing toolbox this is not an issue. But if the algorithm is used in model it would be helpful to return the filepath of the exported Interlis file, in order to use the file in a following algorithm as an input.

In the following model the exported file is uploaded to a FTP server (namely to an Interlis checker):

image

@@ -463,7 +463,8 @@ def initAlgorithm(self, config=None):
self.ILIMODELS,
self.tr('Interlis models')))
self.addParameter(QgsProcessingParameterFileDestination(
self.XTF, description="Interlis transfer output file"))
self.OUTPUT,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why rename the parameter here? Does it have to be named OUTPUT?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it does not. But looking in the docs and in other Python processing algs, it seems to be kind of a convention to name the output parameter OUTPUT. Technically it doesn't matter.

@HusseinKabbout
Copy link

@webrian Thanks for the PR!! I commented on one of your changes :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants