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

Remove group.id property #678

Merged
merged 1 commit into from
Mar 28, 2022
Merged

Remove group.id property #678

merged 1 commit into from
Mar 28, 2022

Conversation

lilleyse
Copy link
Contributor

Removes the group.id property so the groups are consistent with other metadata entities. Metadata entities such as tilesets, tiles, contents, and groups should use the ID semantic.

There was some discussion about this in #648 (review).

@lilleyse lilleyse requested a review from javagl March 28, 2022 16:19
Copy link
Contributor

@javagl javagl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to the broader question of "id vs. index" : One could make a case that

  • things that are values in a dictionary should not have an "id"
  • things that are entries in an array should have an "id"

(The reason being related to the question of what the ID is used for. If it's used for identifying things, then it has many constraints in terms of uniqueness that do not apply directly when there already are "ids", namely, the dictionary keys)

But in general, that change is fine for me, at least to have consistency.

Now becoming more relevant: CesiumGS/cesium#10223

(Also, I'll have to update the samples that needed ID to circumvent this issue)

@javagl javagl merged commit 12b56d3 into draft-1.1 Mar 28, 2022
@lilleyse lilleyse deleted the remove-group-id branch March 28, 2022 16:55
@lilleyse
Copy link
Contributor Author

Now becoming more relevant: CesiumGS/cesium#10223

Yes, thanks for the reminder. @j9liu could you look at that?

@lilleyse
Copy link
Contributor Author

(Also, I'll have to update the samples that needed ID to circumvent this issue)

Does that just include https://github.com/CesiumGS/3d-tiles-samples/tree/main/1.1/MetadataGranularities?

@javagl
Copy link
Contributor

javagl commented Mar 29, 2022

Does that just include https://github.com/CesiumGS/3d-tiles-samples/tree/main/1.1/MetadataGranularities?

Yes, this seemed to be the only model that defined groups for now. The PR is at CesiumGS/3d-tiles-samples#46

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.

None yet

2 participants