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

Semantics vs. extensions #782

Open
lilleyse opened this issue Dec 5, 2024 · 0 comments
Open

Semantics vs. extensions #782

lilleyse opened this issue Dec 5, 2024 · 0 comments

Comments

@lilleyse
Copy link
Contributor

lilleyse commented Dec 5, 2024

One pain point has been when to use semantics vs. extensions.

  • There are some semantics that are purely informational like ID, NAME, and DESCRIPTION. Most user defined semantics fall under this category. These should remain semantics.
  • There are some semantics that affect behavior like TILESET_CRS_GEOCENTRIC that should probably have been extensions.

Then there's this third category of semantics that are convenient to encode as binary metadata properties, e.g. in a property table or property texture, in a subtree or in a glTF, that also affect runtime behavior. Examples of this are:

For this third category it could make sense to have a hybrid approach where you have both an extension and semantics. The extension would be a simple README (no schema) that defines the new semantics and describes their behavior and you would add it to extensionsUsed and/or extensionsRequired.

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

No branches or pull requests

1 participant