VCityTeam / py3dtiles

Python module to manage 3DTiles format
Other
5 stars 7 forks source link

Allowing to provide (within a tileset) the (json) schema of the data held in the batch table #24

Open EricBoix opened 2 years ago

EricBoix commented 2 years ago

The problem

When handled over a tileset that has a batch table, there is no internal (to 3DTiles standard) means to retrieve the types (e.g. json schema) of the data (held in the batch table). Although the structure of a batch table data is simple (collection of attributes) one has to guess their respective semantics and type. Or one has to channel that information outside of the channel that goes from the upstream 3DTiles production to its current consumption.

Hints/Notes

3DTiles-Next introduces the 3Dtiles_metadata extension that allows to attach a (json) schema field on some entity types (tiles, tileset, content).

Two possible technical ways for solving this issue

jailln commented 2 years ago

Good idea! Note that the type of each attribute is defined in the JSON Header when storing the batch table content as binary.

For full JSON batch table cases, another possibility would be to propose a modification to the 3D Tiles standard directly, especially since there is a version 1.1 in the making? Maybe to be discussed in an issue on the 3D Tiles repository?

Just my two cents :)