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 3d tiles metadata noData and default support #218

Merged
merged 10 commits into from
Apr 6, 2024

Conversation

bertt
Copy link
Contributor

@bertt bertt commented Jan 30, 2024

adds support for 3D Tiles - Metadata - noData and default

specs see: https://github.com/CesiumGS/3d-tiles/tree/main/specification/Metadata#required-properties-no-data-values-and-default-values

usecase: when a property value is null, the noData value has to be used. In the client when the property value is equal to the noData value, nothing is shown (or the defaultValue is shown when set).

Limit: noData and defaultValues work for array = false types, not for array= true types

Breaking changes:

  • Public set property removed for: Name, Description, Type, EnumType, ComponentType, Required, Normalized, Array, Count

  • Public method from public to private: StructuralMetadataClassProperty WithArrayType(ELEMENTTYPE etype, DATATYPE? ctype = null, int? count = null)

  • Public Methods added: WithBooleanArrayType, WithUInt8ArrayType, WithInt8ArrayType, WithInt16ArrayType, WithUInt16ArrayType, WithInt32ArrayType, WithUInt32ArrayType, WithInt64ArrayType, WithUInt64ArrayType, WithFloat32ArrayType, WithFloat64ArrayType, WithVector3ArrayType, WithMatrix4x4ArrayType, WithStringArrayType

Non breaking change:

All property type definition methods now have a nullable noData attribute and nullable defaultValue attribute.

@bertt bertt marked this pull request as draft January 30, 2024 13:49
@bertt bertt changed the title add 3d tiles metadata noData support add 3d tiles metadata noData and default support Feb 1, 2024
@bertt bertt marked this pull request as ready for review February 2, 2024 11:16
@vpenades vpenades merged commit 036ba94 into vpenades:master Apr 6, 2024
3 checks passed
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