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

Prüfen von DMAV-Modellen ohne Model-Elemente in der Headersection #421

Open
edigonzales opened this issue Sep 23, 2024 · 0 comments
Open

Comments

@edigonzales
Copy link
Contributor

Gegeben eine Transferdatei ohne Model-Elemente in der Headersection:

   <ili:headersection>
      <ili:models>
      </ili:models>
      <ili:sender>fubar</ili:sender>
   </ili:headersection>

Die Prüfung mit java -jar ilivalidator.jar lfp2.xtf schlägt fehl:

Info: modeldir <%ITF_DIR;http://models.interlis.ch/;%JAR_DIR/ilimodels>
Warning: failed to get modelnames from transferfile (ch.interlis.iox_j.IoxSyntaxException: unexpected end element models)
Error: no models given to look for

Wenn ich den Modellnamen mitliefere (--models DMAV_FixpunkteAVKategorie2_V1_0), funktioniert es auch nicht:

Info: ilifile </Users/stefan/.ilicache/models.geo.admin.ch/V_D/DMAV_FixpunkteAVKategorie2_V1_0.ili>
Info: validate data...
Info: assume unknown external objects
Error: unexpected end element models
Info: ...validation failed
Info: End date 2024-09-23 14:37 validation took 00h:00m:00s.0000ms

Wenn ich in der Headersection aber das Modell (und nur genau das LFP2-Modell ) angebe, funktioniert es auch ohne --models:

<ili:models>
   <ili:model>DMAV_FixpunkteAVKategorie2_V1_0</ili:model>
</ili:models>

Gibt es eine Logik?

file_-output.xml.zip

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

No branches or pull requests

1 participant