gpf_common_point_cloud.utils.ept_utils module¶
Helper to use pdal commands
- gpf_common_point_cloud.utils.ept_utils.check_entwine_info(work_dir: Path, ept_head_file: Path, expected_srs: str) Status ¶
- Execute entwine info command and :
check the result
the SRS consistency
log the EPT version
- Paramètres:
work_dir (Path) – Path of a workdir to write temporary file
ept_head_file (Path) – Path to the EPT head file
expected_srs (str) – Expected EPT SRS
- Renvoie:
status of the check
- Type renvoyé:
Status
- gpf_common_point_cloud.utils.ept_utils.check_ept_head(work_dir: Path, upload_dir: Path, expected_srs: str) tuple[Status, Path | None] ¶
Find the EPT pyramid head file en check it
- Paramètres:
work_dir (Path) – Path of a workdir to write temporary file
upload_dir (Path) – Path of the upload data
expected_srs (str) – Expected EPT SRS
- Renvoie:
status of the check Path: Path to the EPT head file
- Type renvoyé:
Status
- gpf_common_point_cloud.utils.ept_utils.check_ept_hierarchy(ept_dir: Path) Status ¶
Check the hierarchy of the pyramid
- Paramètres:
ept_dir (Path) – Path to the EPT directory
- Renvoie:
status of the check
- Type renvoyé:
Status
- gpf_common_point_cloud.utils.ept_utils.clean_pyramid_temporary_files(pyramid_dir: Path)¶
Supprime tous les fichier temporaire d’entwine, générés lors de l’utilisation des subsets A exécuter après le merge
- Paramètres:
pyramid_dir (Path) – répertoire de la pyramide
- gpf_common_point_cloud.utils.ept_utils.get_extent(ept_head_file: Path) GpfExtent | None ¶
Read bounds from EPT head file and return it as GPF extent in 4326
- Paramètres:
ept_head_file (Path) – path to ept head file
- Renvoie:
the generated extent
- Type renvoyé:
GpfExtent
- gpf_common_point_cloud.utils.ept_utils.get_points(ept_head_file: Path) int | None ¶
Read number of points from EPT head file and return it as int
- Paramètres:
ept_head_file (Path) – path to ept head file
- Renvoie:
number of points of the EPT
- Type renvoyé:
int
- gpf_common_point_cloud.utils.ept_utils.get_srs(ept_head_file: Path) str | None ¶
Read srs from EPT head file and return it as str
- Paramètres:
ept_head_file (Path) – path to ept head file
- Renvoie:
srs of the EPT
- Type renvoyé:
str