py3dtiles.tilers.point.point_tiler module
- class py3dtiles.tilers.point.point_tiler.PointTiler(out_folder: Path, files: List[str | Path] | str | Path, crs_in: CRS | None, force_crs_in: bool, rgb: bool, classification: bool, intensity: bool, color_scale: float | None, cache_size: int, verbosity: int)[source]
Bases:
Tiler
[PointSharedMetadata
,PointTilerWorker
]- benchmark(benchmark_id: str, startup: float) None [source]
Prints benchmark info at the end of the conversion of this tiler and the writing of the tileset.
- get_root_aabb(original_aabb: ndarray[Any, dtype[float64]]) Tuple[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float32]], float] [source]
- get_rotation_matrix(crs_out: CRS | None, transformer: Transformer | None) Tuple[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]] [source]
- get_tasks(startup: float) Generator[Tuple[bytes, List[bytes]], None, None] [source]
Yields tasks to be sent to workers.
This methods will get called by the main convert function each time it wants new tasks to be fed to workers. Implementors should each time returns the task that has the biggest priority.
- get_worker() PointTilerWorker [source]
Returns an instantiated tiler worker.
- initialization(crs_out: CRS | None, working_dir: Path, number_of_jobs: int) None [source]
The __init__ method must only set attributes without any action. It is in this method that this work must be done (and the initialization of shared_metadata).
The method will be called before all others.
- memory_control() None [source]
Method called at the end of each loop of the convert method. Checks if there is no too much memory used by the tiler and do actions in function
- name = b'points'
- node_store: SharedNodeStore
- print_debug(now: float, number_of_jobs: int, number_of_idle_clients: int) None [source]
Prints info about the progression of the conversion. Called everytime a tiler worker task is finished.
- process_message(return_type: bytes, result: List[bytes]) bool [source]
Updates the state of the tiler in function of the return type and the returned data
- state: PointState
- py3dtiles.tilers.point.point_tiler.can_pnts_be_written(node_name: bytes, finished_node: bytes, input_nodes: List[bytes] | Dict[bytes, Any], active_nodes: List[bytes] | Dict[bytes, Any]) bool [source]