Repository navigation
Conversation
3nids
marked this pull request as draft
October 22, 2026 19:48
… offer the same route to the geometry objects (compacted is lazy)
…the elements on compacted and normal mode
…xtf-reader-in-ili2py Xtf reader in ili2py
Removed commented-out lines regarding geometric arcs.
…f ambiguity anymore)
… and how they rendered
- A 2.3 class extending a class with an OID got a second `TID` field next to the inherited `tid`, so the value was lost. - Associations whose roles both allow at most one object were lost. - Association attributes were never generated, neither on association classes nor on embedded roles. - Associations with an OID definition never got their TID. - A 2.3 BOUNDARY could hold only one POLYLINE, although the refman allows several. - XML BLACKBOX was a plain string, so any XML content inside it was lost. - Enumeration values stayed plain text, so even an unknown value like `QUATSCH` passed unchecked. - Extended enumerations lacked the values of their base, e.g. `ausser_Betrieb` in SIA405_Abwasser. - 2.3 had no escaping of python keywords, so an attribute named `from` broke the class. - Reading an XTF with classes of the other INTERLIS version failed with an unrelated "unknown property" error. - The documentation of coord and line types was written after `Meta`, so it was no docstring.
… own class representation
…diagram-fix Diagram fix
…diagram-fix fix lint
A line type declared inline in an attribute has no ElementInPackage in
the IMD, only an LTParent, the attribute it belongs to. `LineType.from_imd`
took that for "not the same package as the coord type" and qualified the
coord type with its tid, e.g. `StructureItems_V1.Coord2`. In a class of a
topic that resolves, the topic module imports the model. In a structure
of the model it does not: the rendered module of the model has no name
`StructureItems_V1`, and `RuntimeLibrary.build()` fails the same way:
NameError: name 'StructureItems_V1' is not defined
This takes the package of a local type from the class of its attribute,
as `get_model_name_from_type` already does, and compares the packages of
the line type and of the coord type: the same package names the coord
type by its name.
Found in ili2django, which generates the Django models of DMAV and reads
XTF with the runtime classes; a test model of its own, a structure with
an inline POLYLINE over a COORD domain of the model, could not be built.
The handwritten model StructureLine24_V1 holds both cases, an inline
POLYLINE in a structure of the model and one in a class of the topic.
The tests of the type names, of the runtime build and of the import of
the rendered library fail without the fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
not meant to be merged, just to see the diff and potentially discuss to push upstream