Skip to content

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

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