-
-
Notifications
You must be signed in to change notification settings - Fork 4
Processing Algorithms for import/export/validate #154
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
Conversation
|
@gacarrillor what do you think about the decision with the meta algorithms in the end (after you pointed to the fact, that it's not super nice). I'm at the moment quite happy with the solution, but still open for other opinions. If it's fine for you, then your review is appreciated. Thanks 🎃 |
gacarrillor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool!
I have only minor inline comments and these 3 questions:
-
The ili2db version that is running appears in the alg. log, right? Would be handy to be able to read it.
-
Same as above for the actual ili2db command (including parameters) that is being run. I think it'd also appear in the alg. log?
-
If I understood well, parameters like
strokeArcsneed to be defined by the user via ModelBaker GUI before running the Processing algs? If so, do you think this is clear for users right now from the alg. help?
BTW, I'm fine with the decision. I was just adding my 2 cents to the discussion. |
Sufficient?
No. Schema import is not yet an algorithm. Only data. |
Sure, nice!
It seems
|
Oh... You are right! Still it's not implemented in Model Baker. Not sure if it's needed. I opened a feature request opengisch/QgisModelBaker#1098 And I think if it's not in Model Baker we wait on the processing tools. But thanks for pointing it out. |
|
Thanks @gacarrillor I considered your inputs |
|
I merge this. I can reproduce the failing test locally with the |

Current implementation
This PR introduces process algorithms for data import / export / validate with ili2pg and ili2gpkg:
They contain all the settings provided by the Model Baker Plugin:
Path through
The input parameters concerning the database connection are passed through as output parameters, means you can easily connect these algorithms in the graphical modeler:
Situation with the input parameter
While we have at the moment just a plain list of input parameters, this is not that comfy to use when starting the algorithms directly. As well it would make sense to have an option to read the connection parameters (like we do it in model baker) from a layer. But not only. It should be optional to enter manually, read from layer or use an existing db connection (defined in the data source manager).
An option would be to create two more algorithms:
But even nicer would be an almighty input parameter:
(Source: https://excalidraw.com/#json=vzYp9UoP3hOo3p19Iz7-e,He6nXlycWuRxn3h42DXUeQ )
But:
Desicion
We decided against having this almighty input parameter, because it's very inflexible in the modeler. We would loose all the flexibility in getting the connection parameters. This is why in the end another "meta-algorithm" is part of the solution. Parsing connection params from layer (like mentioned above):
With this, such models can be built:
processingexample.zip
Choosing an input layer, deciding according to provider what algorithm should be run and pass the parsed connection settings.
To Do