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

Add geometry match checks #423

Merged

Conversation

margrietpalm
Copy link
Contributor

@margrietpalm margrietpalm commented Dec 19, 2024

This PR adds a lot of checks that ensure that the geometries of objects match to the objects they are linked to. E.g. wether the geometry of a Pipe matches the line between the two connection nodes it connects.

For this I generalized LinestringLocationCheck to check for all linestrings. To limit complexity in config.py and to improve testability I created several subclasses for specific cases. For points I renamed CrossSectionLocationCheck to PointLocationCheck and generalized that check. These new / modified checks are moved to a new file (location.py).

Note I'm waiting for confirmation from Leendert that all new checks should be errors. Not going to wait, this can be fixed later.

threedi_modelchecker/config.py Outdated Show resolved Hide resolved
@margrietpalm margrietpalm merged commit d5faa59 into margriet_schema_300_leftovers Dec 19, 2024
7 checks passed
@margrietpalm margrietpalm deleted the margriet_400_geometry_match_checks branch December 19, 2024 10:39
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