py3dtiles.tileset.content.batch_table module

class py3dtiles.tileset.content.batch_table.BatchTable[source]

Bases: object

Only the JSON header has been implemented for now. According to the batch table documentation, the binary body is useful for storing long arrays of data (better performances)

add_property_as_binary(property_name: str, array: ndarray[Any, dtype[int8 | uint8 | int16 | uint16 | int32 | uint32 | float32 | float64]], property_type: Literal['SCALAR', 'VEC2', 'VEC3', 'VEC4']) None[source]
add_property_as_json(property_name: str, array: list[Any]) None[source]
static from_array(tile_header: TileContentHeader, array: npt.NDArray[np.uint8], batch_len: int = 0) BatchTable[source]
get_binary_property(property_name_to_fetch: str) ndarray[Any, dtype[int8 | uint8 | int16 | uint16 | int32 | uint32 | float32 | float64]][source]
get_property_names() Iterator[str][source]
to_array() ndarray[Any, dtype[uint8]][source]
class py3dtiles.tileset.content.batch_table.BatchTableBody(data: list[ndarray[Any, dtype[int8 | uint8 | int16 | uint16 | int32 | uint32 | float32 | float64]]] | None = None)[source]

Bases: object

property nbytes: int
to_array() ndarray[Any, dtype[uint8]][source]
class py3dtiles.tileset.content.batch_table.BatchTableHeader(data: dict[str, list[Any] | dict[str, Any]] | None = None)[source]

Bases: object

to_array() ndarray[Any, dtype[uint8]][source]