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

Models in Repository https://geo.so.ch/models not listed #861

Closed
webrian opened this issue Dec 6, 2023 · 2 comments · Fixed by opengisch/QgisModelBakerLibrary#85
Closed
Labels

Comments

@webrian
Copy link
Contributor

webrian commented Dec 6, 2023

The models from the repository https://geo.so.ch/models are not listed in the wizard.

Maybe related to issue #646 or #651 ?

Looking at the .ilicache directory, ModelBaker generates a directory:

geo.so.ch/ilimodels.xml
geo.so.ch/ilisite.xml

where ilimodels.xml doesn't contain any models.

However ili2c --listModels creates a directory and files as follows:

geo.so.ch/models/ilimodels.xml
geo.so.ch/models/ilisite.xml

where ilimodels.xml is correct.

I'm not sure, if other repositories are concerned as well.

@signedav
Copy link
Member

signedav commented Dec 6, 2023

Something is working wrong there, yes. When the ilicache is clear I can see the models:
image
But as soon I downloaded one, it only finds this (like only checking the cache and not the repo anymore...)

@signedav signedav added the bug label Dec 6, 2023
@webrian
Copy link
Contributor Author

webrian commented Feb 5, 2024

Building up the ilicache with ili2c --listModels https://models.interlis.ch I get the following directory structure:

[...]
.ilicache/geo.so.ch/models/ilimodels.xml
.ilicache/geo.so.ch/models/ilisite.xml
.ilicache/geo.so.ch/usabilityhub/ilimodels.xml
.ilicache/geo.so.ch/usabilityhub/ilisite.xml
[...]

whereas Model Baker skips the subdirectories and writes:

[...]
.ilicache/geo.so.ch/ilimodels.xml
.ilicache/geo.so.ch/ilisite.xml
[...]

These two files ilimodels.xml and ilisite.xml are from our Usability Hub (and not from the model repository), and that's why our INTERLIS data models are not found. The ilimodels.xml and ilisite.xml files from the model repo are simply overwritten.

This is an issue since we got a model repo and an Usability Hub under the domain https://geo.so.ch. On the other hand it is not an issue for e.g. https://405.sia.ch/models/ which builds to .ilicache/405.sia.ch/ilimodels.xml (instead of .ilicache/405.sia.ch/models/ilimodels.xml), since there are no other ilimodels.xml files under https://405.sia.ch .

I'm convinced Model Baker should build up the ilicache the same way like ili2c.

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