-
Notifications
You must be signed in to change notification settings - Fork 470
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 JSONObject Attribute to batchTable #65
Conversation
Thanks @jbo023! I am actually just now starting to flush out the 3D Tiles properties access in the Cesium API so this is good timing. Give me a few days to get to this. |
@jbo023 sorry for the slow response here, but I reviewed the spec and Cesium code and talked this over with @tfili who did some of the implementation work, and it should be fine to store @lilleyse could you update the unit tests in Cesium with an example where properties are objects and arrays before we update the spec here? |
I'm sure there's a good answer to this, but what is the type information used for outside of parsing? From a parsing implementation standpoint, arrays of strings, numbers, and booleans are also valid JSON so technically it's all the same type (JSON). Is there a need for the client to know the type after parsing is done, thus requiring it to be specifically specified? Is it for validation purposes? |
The original intention might have been to avoid some |
Cesium tests are in CesiumGS/cesium#3616. Thanks again, @jbo023. I'm going to merge this and open another pull request to update this a bit more and also update the i3dm tile format. |
add JSONObject Attribute to batchTable
We are working with datasets which often have inhomogeneous or even nested object attribute datasets.
Because of this we would prefer if the specification doesn't set strict presets on the allowed datatype for batchTable attributes. With inhomogeneous data this leads to a Batchtable where many fields are "null".
In the pull request I just added JSONObject to the allowed datatypes. This will allow us to add complex data as an batchTable attribute. We have done some testing with this and it actually already works with cesium, as long as the batchtable is a valid JSON.