You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(This was originally considered to become part of #325 , but may warrant its own issue:)
At some point, we'd like to address CesiumGS/3d-tiles#643 and CesiumGS/3d-tiles#574 . And I think that one important aspect of that is to establish a mechanism for how these new semantics are brought into the validator. The first issue already suggests that new semantics could (nearly) be defined with a pure, plain 3D Tiles Metadata schema, using the 'semantics' as property names in that schema. And that's basically what is already done in the validator. There is the minor caveat that the componentType in this schema can also be a RegEx like FLOAT(32|64), to match the different options of component types. But I'd suggest to simply disallow this for future semantics definitions.
Given that the validation of semantics then boils down to loading a plain, pure, 3D Tiles Metadata schema and comparing its properties to other properties, the generalization here would be:
Move the "matching schema" that is currently used here into a file, like CesiumMetadataSemantics-0.0.1.json
Load this file and use it for the validator
(Eventually:) Allow users to define their own "matching schema files", and also use them for the validation
The last point means that users could define their semantics in a schema, like
and pass in a command line argument like ... -semantics ["CompanyNameMetadataSemantics-0.0.0.json"]
to take these semantics into account during the validation.
The text was updated successfully, but these errors were encountered:
(This was originally considered to become part of #325 , but may warrant its own issue:)
At some point, we'd like to address CesiumGS/3d-tiles#643 and CesiumGS/3d-tiles#574 . And I think that one important aspect of that is to establish a mechanism for how these new semantics are brought into the validator. The first issue already suggests that new semantics could (nearly) be defined with a pure, plain 3D Tiles Metadata schema, using the 'semantics' as property names in that schema. And that's basically what is already done in the validator. There is the minor caveat that the
componentType
in this schema can also be a RegEx likeFLOAT(32|64)
, to match the different options of component types. But I'd suggest to simply disallow this for future semantics definitions.Given that the validation of semantics then boils down to loading a plain, pure, 3D Tiles Metadata schema and comparing its properties to other properties, the generalization here would be:
CesiumMetadataSemantics-0.0.1.json
The last point means that users could define their semantics in a schema, like
and pass in a command line argument like
... -semantics ["CompanyNameMetadataSemantics-0.0.0.json"]
to take these semantics into account during the validation.
The text was updated successfully, but these errors were encountered: