ili2gpkg handle the date differently to ilivalidator.
I have:
A model with an INTERLIS.XMLDate attribute
An (invalid) XTF with two entries: '2024-03-08' and '09.03.2024'
I validate with ilivalidator:
Error: line 6: Gebaeudeinventar_V1.Gebaeude.Gebaeude: tid _503befcd-7ae5-4d6f-b60d-2dabb8c3c407: invalid format of date value <09.03.2024> in attribute Datum_Heizung
Info: second validation pass...
as expected...
Now I do the following:
I create the schema --sqlColsAsText
I import the data (again, it finds the error above - which is why I select --disableValdiation) and now have both entries in the gpkg
I validate with ili2gpkg-5.0.1.jar --validate and find an error. But for the other attribute:
Error: line 0: Gebaeudeinventar_V1.Gebaeude.Gebaeude: tid _503befcd-7ae5-4d6f-b60d-2dabb8c3c406: invalid format of date value <2024-03-08 00:00:00.000Z> in attribute Datum_Heizung
I change the field to 08.03.2024 and the validation is successful
After export, however, the check then shows two errors (as expected)
The model:
INTERLIS 2.3;
MODEL Gebaeudeinventar_V1 (de)
AT "mailto:signedav@localhost"
VERSION "2023-01-19" =
TOPIC Gebaeude =
CLASS Gebaeude =
Datum_Heizung : INTERLIS.XMLDate;
END Gebaeude;
END Gebaeude;
END Gebaeudeinventar_V1.
ili2gpkg handle the date differently to ilivalidator.
I have:
I validate with ilivalidator:
as expected...
Now I do the following:
The model:
The XTF:
The ili2gpkg Log: