-
Notifications
You must be signed in to change notification settings - Fork 25
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
Clarify how to nest children of CityObjects #49
Comments
This is related to #38. As soon as there is a |
I think @liberostelios, redundancy is okay IMO. Both use cases (parent->children and child->parent) are common. No need to force the user to compute it. See also #28. |
I'll merge but only when I make v1.0.1, waiting for other small bugs to be discovered. redundancy: let's think about it and see if others have an opinion too. |
Personally, I would always advise against redundancy unless there are very good reasons for it. As outlined in #38, I think And imho Am I missing an additional benefit of having the |
We can surely do without However, the question is whether we want to leave the reconstruction of the relationships to the developers. I mean, it's easy to do but it means that for many many tasks the developer has to do this, while we can easily store it. Yes there's redundancy, but it's for a good cause, no? We flattened the data model, and by removing I coded some functions in cjio and knowing what is the parent of a given object is super useful to have built-in the object. If left to the developer then it's always a check in an auxiliary data structure. So unless there are good reasons (versioning was a potential one, see #32 ) I'd favour sticking with redundancy. |
Re: versioning, the hash function could simply skip |
I reckon everything is fine as long as Maybe |
cjio already validate these! |
It was not completely clear for me what can I expect in the
children
array of a 1st-level CityObject. Whether the array contains all the COs. that are related to it (children of children), or just those that are one level below (only immediate children).My interpretation of the current specs is that the second is true. I opened a PR ( #48 ) to support this by making the description and example more explicit. Please correct me if I'm wrong.
The text was updated successfully, but these errors were encountered: