py3dtiles.tilers.point.node.shared_node_store module

class py3dtiles.tilers.point.node.shared_node_store.SharedNodeStore(folder: Path)[source]

Bases: object

A class that implements a compressed storage for arbitrary data, that is able to limit the amount of ram it uses by temporary storing part of the storage on disk for later retrieval.

The memory limit is not automatic at the moment, but instead is done by calling self.control_memory_usage.

control_memory_usage(max_size_mb: int, verbose: int) None[source]

Limit the memory usage of this instance.

get(name: bytes, stat_inc: int = 1) bytes[source]

Get a node storage.

Parameters:

name – the name of the node

print_statistics() None[source]
put(name: bytes, data: bytes) None[source]

Insert or change

remove(name: bytes) None[source]

Remove a node from this storage.

remove_oldest_nodes(percent: float = 100) Tuple[int, int][source]