vyperdatum.utils.drivers_utils

Attributes

logger

Functions

vrbag_pre_transformation_checks(→ bool)

Run a number of sanity checks on the source file before transformation.

vrbag_post_transformation_checks(→ bool)

Run a number of sanity checks on the transformed vrbag file.

laz_pre_transformation_checks(→ bool)

Run a number of sanity checks on the source file before transformation.

laz_post_transformation_checks(→ bool)

Run a number of sanity checks on the transformed laz file.

npz_pre_transformation_checks(→ bool)

Run a number of sanity checks on the source file before transformation.

npz_post_transformation_checks(→ bool)

Run a number of sanity checks on the transformed npz file.

pdal_pre_transformation_checks(→ bool)

Run a number of sanity checks on the source file before transformation.

pdal_post_transformation_checks(→ bool)

Run a number of sanity checks on the transformed PDAL-supported file.

Module Contents

vyperdatum.utils.drivers_utils.logger
vyperdatum.utils.drivers_utils.vrbag_pre_transformation_checks(file_path: str, source_crs: pyproj.CRS | str) bool

Run a number of sanity checks on the source file before transformation. Warns if a check fails.

Parameters:
  • file_path (str) – Path to the input file.

  • source_crs (pyproj.crs.CRS or input used to create one) – The expected CRS object for the vrbag file.

Returns:

Returns True if all checks pass, otherwise False.

Return type:

bool

vyperdatum.utils.drivers_utils.vrbag_post_transformation_checks(file_path: str, target_crs: pyproj.CRS | str) bool

Run a number of sanity checks on the transformed vrbag file. Warns if a check fails.

Parameters:
  • file_path (str) – Path to the input file.

  • target_crs (pyproj.crs.CRS or input used to create one) – The expected CRS object for the transformed file.

Returns:

Returns True if all checks pass, otherwise False.

Return type:

bool

vyperdatum.utils.drivers_utils.laz_pre_transformation_checks(file_path: str, source_crs: pyproj.CRS | str) bool

Run a number of sanity checks on the source file before transformation. Warns if a check fails.

Parameters:
  • file_path (str) – Path to the input file.

  • source_crs (pyproj.crs.CRS or input used to create one) – The expected CRS object for the laz file.

Returns:

Returns True if all checks pass, otherwise False.

Return type:

bool

vyperdatum.utils.drivers_utils.laz_post_transformation_checks(file_path: str, target_crs: pyproj.CRS | str) bool

Run a number of sanity checks on the transformed laz file. Warns if a check fails.

Parameters:
  • file_path (str) – Path to the input file.

  • target_crs (pyproj.crs.CRS or input used to create one) – The expected CRS object for the transformed file.

Returns:

Returns True if all checks pass, otherwise False.

Return type:

bool

vyperdatum.utils.drivers_utils.npz_pre_transformation_checks(file_path: str, source_crs: pyproj.CRS | str) bool

Run a number of sanity checks on the source file before transformation. Warns if a check fails.

Parameters:
  • file_path (str) – Path to the input file.

  • source_crs (pyproj.crs.CRS or input used to create one) – The expected CRS object for the npz file.

Returns:

Returns True if all checks pass, otherwise False.

Return type:

bool

vyperdatum.utils.drivers_utils.npz_post_transformation_checks(file_path: str, target_crs: pyproj.CRS | str) bool

Run a number of sanity checks on the transformed npz file. Warns if a check fails.

Parameters:
  • file_path (str) – Path to the input file.

  • target_crs (pyproj.crs.CRS or input used to create one) – The expected CRS object for the transformed file.

Returns:

Returns True if all checks pass, otherwise False.

Return type:

bool

vyperdatum.utils.drivers_utils.pdal_pre_transformation_checks(file_path: str, source_crs: pyproj.CRS | str) bool

Run a number of sanity checks on the source file before transformation. Warns if a check fails.

Parameters:
  • file_path (str) – Path to the input file.

  • source_crs (pyproj.crs.CRS or input used to create one) – The expected CRS object for the PDAL-supported file.

Returns:

Returns True if all checks pass, otherwise False.

Return type:

bool

vyperdatum.utils.drivers_utils.pdal_post_transformation_checks(file_path: str, target_crs: pyproj.CRS | str) bool

Run a number of sanity checks on the transformed PDAL-supported file. Warns if a check fails.

Parameters:
  • file_path (str) – Path to the input file.

  • target_crs (pyproj.crs.CRS or input used to create one) – The expected CRS object for the transformed file.

Returns:

Returns True if all checks pass, otherwise False.

Return type:

bool