Skip to content

Process Algorithm: Basket Creation - #184

Merged
signedav merged 4 commits into
mainfrom
processing-baskets
Oct 1, 2026
Merged

signedav merged 4 commits into
mainfrom
processing-baskets

Conversation

@signedav

@signedav signedav commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Adds basket creation possibility to the Model Baker processing algoritm.

This is often needed, after you created a schema and are not importing data from an XTF, but importing data e.g. from a non-INTERLIS source.

The algorithms for GeoPackage and PostgreSQL are located in the Model Baker group in Database subgroup:

image

Input parameters are the following:

image
  • Dataset defines the name - when this dataset not exists yet, it's created in this algorithm.
  • Create baskets for relevant topics only defines if the baskets for base topics having a proper extension and are usually not used in the project, are not created.
  • Basket ID Template allows you to set a template for all the basket ids. Of course you might have (technically) different basket id domains (uuid, integer, standardoid etc.) for your topics and a general override would lead to issues (invalid baskets), but in reality a model mostly uses one type of basket ids.

Technical Info:

The class extends the ili2db classes even though it's in the end not using ili2db. But for using the same way of database connections this is imo the cleanest approach.

Sponsor: QGIS Model Baker Group

@signedav
signedav marked this pull request as ready for review September 25, 2026 07:53
@signedav signedav changed the title Basket Creating Algorithm Process Algorithm: Basket Creation Sep 25, 2026
Based on the Ili2pgAlgorithms, not using ili2db but all the connection parameters.
Using db_connector to modify the database.

@gacarrillor gacarrillor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

Comment thread modelbaker/processing/db_basket_creating.py
Return DB PATH as string from ili2db algorithms.
@signedav
signedav force-pushed the processing-baskets branch from 2e07a2e to 289f390 Compare October 1, 2026 07:16
@signedav
signedav merged commit f7802a3 into main Oct 1, 2026
5 checks passed
@signedav
signedav deleted the processing-baskets branch October 1, 2026 09:49
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